public abstract class AbstractColoredOperation extends AbstractOperation implements ColoredOperation
COPY_UNPROCESSED_BANDS_PARAMCOLOR_INTERPRETATION_PARAM, COLOR_TABLE_OPERATION_NAME, OUTPUT_COLOR_INTERPRETATION_PARAM| Constructor and Description |
|---|
AbstractColoredOperation(OperationFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected ColorInterpretation |
getInputColorInterpretation() |
protected NoData[] |
getNoDatasAsArray(java.util.List<NoData> theNoDatas) |
protected ColorInterpretation |
getOutputColorInterpretation() |
protected java.util.List<java.lang.String> |
getProcessableBandColorInterpretations()
This is a utility method that return a list of the ColorInterpretation for
the processable bands of the input buffer.
|
protected java.lang.String[] |
getProcessableBandColorInterpretationsAsArray()
This is a utility method that return a copy of the ColorInterpretation for
the processable band of the input buffer.
|
protected java.util.List<NoData> |
getProcessableBandNoDatas()
This is a utility method that return a copy of the NoData of
the processable band of the input buffer.
|
protected NoData[] |
getProcessableBandNoDatasAsArray()
This is a utility method that return a copy of the NoData of
the processable band of the input buffer.
|
protected java.util.List<java.lang.Integer> |
getProcessableBandTypes()
This is a utility method that return a copy of the types of
the processable band of the input buffer.
|
protected int[] |
getProcessableBandTypesAsArray()
This is a utility method that return a copy of the types of
the processable band of the input buffer.
|
protected int[] |
getTypesAsArray(java.util.List<java.lang.Integer> theTypes) |
protected boolean |
isProcessableBand(int band) |
void |
postProcess()
Prepare the result
|
void |
preProcess()
Prepare the process
|
void |
process()
Process the operation
|
protected void |
setOutputColorInterpretation(ColorInterpretation theColorInterpretation) |
execute, getFactory, getInputBuffer, getOutputBuffer, getParameter, getParameters, getTaskStatus, mustCopyUnprocessedBands, setOutputBuffer, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getFactorypublic AbstractColoredOperation(OperationFactory factory)
factory - protected ColorInterpretation getInputColorInterpretation()
protected ColorInterpretation getOutputColorInterpretation()
protected void setOutputColorInterpretation(ColorInterpretation theColorInterpretation)
public void preProcess()
throws BufferOperationException
OperationServicespreProcess in interface OperationServicespreProcess in class AbstractOperationBufferOperationExceptionpublic void process()
throws ProcessingOperationException
OperationServicesprocess in interface OperationServicesprocess in class AbstractOperationProcessingOperationExceptionpublic void postProcess()
throws BufferOperationException
OperationServicespostProcess in interface OperationServicespostProcess in class AbstractOperationBufferOperationExceptionprotected boolean isProcessableBand(int band)
protected java.util.List<java.lang.String> getProcessableBandColorInterpretations()
protected java.lang.String[] getProcessableBandColorInterpretationsAsArray()
protected java.util.List<NoData> getProcessableBandNoDatas()
protected NoData[] getProcessableBandNoDatasAsArray()
protected java.util.List<java.lang.Integer> getProcessableBandTypes()
protected int[] getProcessableBandTypesAsArray()
protected int[] getTypesAsArray(java.util.List<java.lang.Integer> theTypes)