Class BranchStack

Object
AnchorBean<StackWriter>
StackWriter

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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    StackWriter
    Writer to use if it is guaranteed that the image will always be 2D.
    StackWriter
    Otherwise the writer to use.
    protected StackWriter
    selectDelegate(StackWriteOptions writeOptions)
    Selects a StackWriter to use as a delegate.
    void
    setWriterAlways2D(StackWriter writerAlways2D)
    Writer to use if it is guaranteed that the image will always be 2D.
    void
    setWriterElse(StackWriter writerElse)
    Otherwise the writer to use.

    Methods inherited from class org.anchoranalysis.plugin.io.bean.stack.writer.StackWriterDelegateBase

    fileFormat, writeStack

    Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter

    fileFormatWarnUnexpected, writeStackWithExtension

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.