Class DisplayStackGenerator
- All Implemented Interfaces:
Generator<DisplayStack>
,TransformingGenerator<DisplayStack,
,Stack> ElementWriter<DisplayStack>
Writes a display-stack to the filesystem.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stack
convertBeforeAssign
(DisplayStack element) Converts an element before setting it on thedelegate
.protected Stack
convertBeforeTransform
(Stack stack) Converts an element before callingRasterGeneratorDelegateToRaster.transform(T)
on thedelegate
.Guarantees on the attributes of all images created by the generator.Methods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGeneratorDelegateToRaster
getDelegate, transform
Methods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGeneratorSelectFormat
selectFileExtension, writeToFile
Methods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGenerator
write, writeWithIndex
-
Constructor Details
-
DisplayStackGenerator
public DisplayStackGenerator(boolean always2D) Creates the generator.- Parameters:
always2D
- if true, a stack is guaranteed always to be 2D (i.e. have only one z-slice). If false, it may be 2D or 3D.
-
-
Method Details
-
convertBeforeAssign
Description copied from class:RasterGeneratorDelegateToRaster
Converts an element before setting it on thedelegate
.- Specified by:
convertBeforeAssign
in classRasterGeneratorDelegateToRaster<Stack,
DisplayStack> - Parameters:
element
- element to convert- Returns:
- converted element
- Throws:
OperationFailedException
- if anything goes wrong during conversion
-
convertBeforeTransform
Description copied from class:RasterGeneratorDelegateToRaster
Converts an element before callingRasterGeneratorDelegateToRaster.transform(T)
on thedelegate
.- Specified by:
convertBeforeTransform
in classRasterGeneratorDelegateToRaster<Stack,
DisplayStack> - Parameters:
stack
- stack to convert- Returns:
- converted element
-
guaranteedImageAttributes
Description copied from class:RasterGenerator
Guarantees on the attributes of all images created by the generator.- Overrides:
guaranteedImageAttributes
in classRasterGeneratorDelegateToRaster<Stack,
DisplayStack> - Returns:
- options that are guaranteed to be true of all images by the generator.
-