Class StackWriterDelegateBase

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
Direct Known Subclasses:
BranchChannels, BranchStack, BranchSuggestedFormat

public abstract class StackWriterDelegateBase
extends org.anchoranalysis.image.io.bean.stack.writer.StackWriter
A base class for a StackWriter delegates to another StackWriter based on values of a StackWriteAttributes.
Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    StackWriterDelegateBase()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.core.format.ImageFileFormat fileFormat​(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions)  
    protected abstract 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 writeStack​(org.anchoranalysis.image.core.stack.Stack stack, Path filePath, org.anchoranalysis.image.io.stack.output.StackWriteOptions options)  

    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

    • fileFormat

      public org.anchoranalysis.core.format.ImageFileFormat fileFormat​(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      fileFormat in class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • writeStack

      public void writeStack​(org.anchoranalysis.image.core.stack.Stack stack, Path filePath, org.anchoranalysis.image.io.stack.output.StackWriteOptions options) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      writeStack in class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • selectDelegate

      protected abstract org.anchoranalysis.image.io.bean.stack.writer.StackWriter selectDelegate​(org.anchoranalysis.image.io.stack.output.StackWriteOptions writeOptions) throws org.anchoranalysis.image.io.ImageIOException
      Selects a StackWriter to use as a delegate.
      Parameters:
      writeOptions - options that specify what kind of rasters will be written.
      Returns:
      the selected StackWriter
      Throws:
      org.anchoranalysis.image.io.ImageIOException