Class BranchStack

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.writer.StackWriter>
org.anchoranalysis.image.io.bean.stack.writer.StackWriter
org.anchoranalysis.plugin.io.bean.stack.writer.StackWriterDelegateBase
org.anchoranalysis.plugin.io.bean.stack.writer.BranchStack

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
    BranchStack()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterAlways2D()
    Writer to use if it is guaranteed that the image will always be 2D.
    org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterElse()
    Otherwise the writer to use.
    protected org.anchoranalysis.image.io.bean.stack.writer.StackWriter selectDelegate​(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)
    Selects a StackWriter to use as a delegate.
    void setWriterAlways2D​(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerAlways2D)
    Writer to use if it is guaranteed that the image will always be 2D.
    void setWriterElse​(org.anchoranalysis.image.io.bean.stack.writer.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

  • Method Details

    • selectDelegate

      protected org.anchoranalysis.image.io.bean.stack.writer.StackWriter selectDelegate​(org.anchoranalysis.image.io.stack.output.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 org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterAlways2D()
      Writer to use if it is guaranteed that the image will always be 2D.
    • setWriterAlways2D

      public void setWriterAlways2D​(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerAlways2D)
      Writer to use if it is guaranteed that the image will always be 2D.
    • getWriterElse

      public org.anchoranalysis.image.io.bean.stack.writer.StackWriter getWriterElse()
      Otherwise the writer to use.
    • setWriterElse

      public void setWriterElse​(org.anchoranalysis.image.io.bean.stack.writer.StackWriter writerElse)
      Otherwise the writer to use.