Class AbstractSpecifiedBandsOperation
java.lang.Object
org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
org.gvsig.raster.lib.buffer.spi.operations.AbstractSpecifiedBandsOperation
- All Implemented Interfaces:
org.gvsig.raster.lib.buffer.api.operations.Operation,org.gvsig.raster.lib.buffer.api.operations.SpecifiedBandsOperation,OperationServices
public abstract class AbstractSpecifiedBandsOperation
extends AbstractOperation
implements org.gvsig.raster.lib.buffer.api.operations.SpecifiedBandsOperation
- Author:
- fdiaz
-
Field Summary
Fields inherited from class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
COPY_UNPROCESSED_BANDS_PARAMFields inherited from interface org.gvsig.raster.lib.buffer.api.operations.SpecifiedBandsOperation
BANDS_TO_PROCESS_PARAM, LINEAR_STRETCH_ENHANCEMENT_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSpecifiedBandsOperation(org.gvsig.raster.lib.buffer.api.operations.OperationFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.gvsig.raster.lib.buffer.api.NoData> This is a utility method that return a copy of the NoData of the processable band of the input buffer.protected org.gvsig.raster.lib.buffer.api.NoData[]This is a utility method that return a copy of the NoData of the processable band of the input buffer.This is a utility method that return a copy of the types of the processable band of the input buffer.protected int[]This is a utility method that return a copy of the types of the processable band of the input buffer.protected int[]getTypesAsArray(List<Integer> theTypes) protected booleanisProcessableBand(int band) voidPrepare the resultvoidPrepare the processvoidprocess()Process the operationMethods inherited from class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
execute, getFactory, getInputBuffer, getOutputBuffer, getParameter, getParameters, getTaskStatus, mustCopyUnprocessedBands, setOutputBuffer, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.raster.lib.buffer.api.operations.Operation
execute, getFactory
-
Constructor Details
-
AbstractSpecifiedBandsOperation
public AbstractSpecifiedBandsOperation(org.gvsig.raster.lib.buffer.api.operations.OperationFactory factory) - Parameters:
factory-
-
-
Method Details
-
getBandsToProcess
-
preProcess
public void preProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationExceptionDescription copied from interface:OperationServicesPrepare the process- Specified by:
preProcessin interfaceOperationServices- Overrides:
preProcessin classAbstractOperation- Throws:
org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
-
isProcessableBand
protected boolean isProcessableBand(int band) - Parameters:
band-- Returns:
-
process
Description copied from interface:OperationServicesProcess the operation- Specified by:
processin interfaceOperationServices- Overrides:
processin classAbstractOperation- Throws:
ProcessingOperationException
-
postProcess
public void postProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationExceptionDescription copied from interface:OperationServicesPrepare the result- Specified by:
postProcessin interfaceOperationServices- Overrides:
postProcessin classAbstractOperation- Throws:
org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
-
getProcessableBandNoDatas
This is a utility method that return a copy of the NoData of the processable band of the input buffer.- Returns:
- List of NoDatas
-
getProcessableBandNoDatasAsArray
protected org.gvsig.raster.lib.buffer.api.NoData[] getProcessableBandNoDatasAsArray()This is a utility method that return a copy of the NoData of the processable band of the input buffer.- Returns:
- array of NoDatas
-
getProcessableBandTypes
This is a utility method that return a copy of the types of the processable band of the input buffer.- Returns:
- list of types
-
getProcessableBandTypesAsArray
protected int[] getProcessableBandTypesAsArray()This is a utility method that return a copy of the types of the processable band of the input buffer.- Returns:
- Array of types
-
getTypesAsArray
-