Class ObjectsAsRGBGenerator

All Implemented Interfaces:
Generator<ObjectCollectionWithProperties>, TransformingGenerator<ObjectCollectionWithProperties,Stack>, ElementWriter<ObjectCollectionWithProperties>
Direct Known Subclasses:
DrawCroppedObjectsGenerator, DrawObjectsGenerator

public abstract class ObjectsAsRGBGenerator extends RasterGeneratorSelectFormat<ObjectCollectionWithProperties>
A base class for generators that draw an ObjectCollection upon a RGBStack.
Author:
Owen Feehan
  • Constructor Details

    • ObjectsAsRGBGenerator

      public ObjectsAsRGBGenerator(DrawObject drawObject, ObjectDrawAttributes attributes, io.vavr.control.Either<Dimensions,DisplayStack> background)
      Creates a new ObjectsAsRGBGenerator instance.
      Parameters:
      drawObject - Determines how an object is drawn (on the background).
      attributes - An association of color and/or other identifies with each object.
      background - A background image or dimensions to define an empty background.
  • Method Details