Class GenerativeMediaItem

java.lang.Object
paletai.mapping.MediaItem
paletai.mapping.GenerativeMediaItem

public class GenerativeMediaItem extends MediaItem
A specialized MediaItem subclass for generative content.

Extends MediaItem to handle content generated programmatically by LunaContentGenerator implementations rather than from static media files. Provides custom rendering that integrates generative content with the homography transformation system.

Key features:

  • Integration with LunaContentGenerator framework
  • Custom rendering pipeline for dynamic content
  • Automatic thumbnail generation from generator output
  • Inherits all homography transformation capabilities from MediaItem
See Also:
  • Constructor Details

    • GenerativeMediaItem

      public GenerativeMediaItem(processing.core.PApplet p, LunaContentGenerator generator, int screenIndex, int mediaId)
      Constructs a new GenerativeMediaItem with the specified generator.
      Parameters:
      p - The parent PApplet instance
      generator - The content generator to use for this media item
      screenIndex - The screen index this media is assigned to
      mediaId - Unique identifier for this media item
      See Also:
    • GenerativeMediaItem

      public GenerativeMediaItem(processing.core.PApplet p, LunaContentGenerator generator, processing.data.XML mediaXML)
      Constructs a GenerativeMediaItem from XML configuration. Recreates a generative media item from saved project data.
      Parameters:
      p - The parent PApplet instance
      generator - The content generator to use for this media item
      mediaXML - XML element containing media configuration
      See Also:
  • Method Details