S
- delegate iteration-typeT
- generator iteration-type (the iteration-type that is publicly exposed)public abstract class RasterGeneratorDelegateToRaster<S,T> extends RasterGeneratorSelectFormat<T>
transform(T)
.Modifier | Constructor and Description |
---|---|
protected |
RasterGeneratorDelegateToRaster(RasterGenerator<S> delegate) |
Modifier and Type | Method and Description |
---|---|
protected abstract S |
convertBeforeAssign(T element)
Converts an element before setting it on the
delegate . |
protected abstract Stack |
convertBeforeTransform(Stack stack)
Converts an element before calling
transform(T) on the delegate . |
protected RasterGenerator<S> |
getDelegate()
The delegate.
|
StackWriteAttributes |
guaranteedImageAttributes()
Guarantees on the attributes of all images created by the generator.
|
Stack |
transform(T element)
Applies any necessary preprocessing to create an element suitable for writing to the
filesystem.
|
selectFileExtension, writeToFile
write, writeWithIndex
protected RasterGeneratorDelegateToRaster(RasterGenerator<S> delegate)
public StackWriteAttributes guaranteedImageAttributes()
RasterGenerator
guaranteedImageAttributes
in class RasterGenerator<T>
public Stack transform(T element) throws OutputWriteFailedException
TransformingGenerator
element
- element to be assigned and then transformedOutputWriteFailedException
- if anything goes wrongprotected abstract S convertBeforeAssign(T element) throws OperationFailedException
delegate
.element
- element to convertOperationFailedException
- if anything goes wrong during conversionprotected abstract Stack convertBeforeTransform(Stack stack)
transform(T)
on the delegate
.stack
- stack to convertprotected RasterGenerator<S> getDelegate()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.