Class RasterGeneratorDelegateToDisplayStack<T>

Object
RasterGenerator<T>
RasterGeneratorSelectFormat<T>
RasterGeneratorDelegateToDisplayStack<T>
Type Parameters:
T - element-type
All Implemented Interfaces:
Generator<T>, TransformingGenerator<T,Stack>, ElementWriter<T>

public class RasterGeneratorDelegateToDisplayStack<T> extends RasterGeneratorSelectFormat<T>
Delegates a RasterGeneratorSelectFormat to a SingleFileTypeGenerator<T, DisplayStack>.
Author:
Owen Feehan
  • Constructor Details

    • RasterGeneratorDelegateToDisplayStack

      public RasterGeneratorDelegateToDisplayStack(SingleFileTypeGenerator<T,DisplayStack> delegate, boolean rgb)
      Creates a new RasterGeneratorDelegateToDisplayStack instance.
      Parameters:
      delegate -
      rgb - Whether the raster image that is produced is RGB or not.

      RGB-A images should never be produced.

  • Method Details

    • transform

      public Stack transform(T element) throws OutputWriteFailedException
      Description copied from interface: TransformingGenerator
      Applies any necessary preprocessing to create an element suitable for writing to the filesystem.
      Parameters:
      element - element to be assigned and then transformed.
      Returns:
      the transformed element after necessary preprocessing.
      Throws:
      OutputWriteFailedException - if anything goes wrong.
    • guaranteedImageAttributes

      public StackWriteAttributes guaranteedImageAttributes()
      Description copied from class: RasterGenerator
      Guarantees on the attributes of all images created by the generator.
      Specified by:
      guaranteedImageAttributes in class RasterGenerator<T>
      Returns:
      options that are guaranteed to be true of all images by the generator.