Class AbstractColoredOperation

java.lang.Object
org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
org.gvsig.raster.lib.legend.spi.AbstractColoredOperation
All Implemented Interfaces:
org.gvsig.raster.lib.buffer.api.operations.Operation, org.gvsig.raster.lib.buffer.spi.operations.OperationServices, ColoredOperation

public abstract class AbstractColoredOperation extends org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation implements ColoredOperation
Author:
fdiaz
  • Constructor Details

    • AbstractColoredOperation

      public AbstractColoredOperation(org.gvsig.raster.lib.buffer.api.operations.OperationFactory factory)
      Parameters:
      factory -
  • Method Details

    • getInputColorInterpretation

      protected ColorInterpretation getInputColorInterpretation()
    • getOutputColorInterpretation

      protected ColorInterpretation getOutputColorInterpretation()
    • setOutputColorInterpretation

      protected void setOutputColorInterpretation(ColorInterpretation theColorInterpretation)
    • preProcess

      public void preProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
      Specified by:
      preProcess in interface org.gvsig.raster.lib.buffer.spi.operations.OperationServices
      Overrides:
      preProcess in class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
      Throws:
      org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
    • process

      public void process() throws org.gvsig.raster.lib.buffer.spi.exceptions.ProcessingOperationException
      Specified by:
      process in interface org.gvsig.raster.lib.buffer.spi.operations.OperationServices
      Overrides:
      process in class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
      Throws:
      org.gvsig.raster.lib.buffer.spi.exceptions.ProcessingOperationException
    • postProcess

      public void postProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
      Specified by:
      postProcess in interface org.gvsig.raster.lib.buffer.spi.operations.OperationServices
      Overrides:
      postProcess in class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
      Throws:
      org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
    • isProcessableBand

      protected boolean isProcessableBand(int band)
    • getProcessableBandColorInterpretations

      protected List<String> getProcessableBandColorInterpretations()
      This is a utility method that return a list of the ColorInterpretation for the processable bands of the input buffer.
      Returns:
      List of ColorInterpretation
    • getProcessableBandColorInterpretationsAsArray

      protected String[] getProcessableBandColorInterpretationsAsArray()
      This is a utility method that return a copy of the ColorInterpretation for the processable band of the input buffer.
      Returns:
      array of ColorInterpretation
    • getProcessableBandNoDatas

      protected List<org.gvsig.raster.lib.buffer.api.NoData> 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
    • getNoDatasAsArray

      protected org.gvsig.raster.lib.buffer.api.NoData[] getNoDatasAsArray(List<org.gvsig.raster.lib.buffer.api.NoData> theNoDatas)
    • getProcessableBandTypes

      protected List<Integer> 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

      protected int[] getTypesAsArray(List<Integer> theTypes)