public class BranchStack extends StackWriterDelegateBase
Uses different raster-writers depending on whether it is always 2D (not a z-stack) or possibly 3D.

If any optional condition does not have a writer, then writer is used in this case.

Author:
Owen Feehan
  • Constructor Details

    • BranchStack

      public BranchStack()
  • Method Details

    • selectDelegate

      protected StackWriter selectDelegate(StackWriteOptions writeOptions)
      Description copied from class: StackWriterDelegateBase
      Selects a StackWriter to use as a delegate.
      Specified by:
      selectDelegate in class StackWriterDelegateBase
      Parameters:
      writeOptions - options that specify what kind of rasters will be written.
      Returns:
      the selected StackWriter
    • getWriterAlways2D

      public StackWriter getWriterAlways2D()
      Writer to use if it is guaranteed that the image will always be 2D.
    • setWriterAlways2D

      public void setWriterAlways2D(StackWriter writerAlways2D)
      Writer to use if it is guaranteed that the image will always be 2D.
    • getWriterElse

      public StackWriter getWriterElse()
      Otherwise the writer to use.
    • setWriterElse

      public void setWriterElse(StackWriter writerElse)
      Otherwise the writer to use.