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
  • Constructor Details

    • AbstractSpecifiedBandsOperation

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

    • getBandsToProcess

      public List<Integer> getBandsToProcess()
    • preProcess

      public void preProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
      Description copied from interface: OperationServices
      Prepare the process
      Specified by:
      preProcess in interface OperationServices
      Overrides:
      preProcess in class AbstractOperation
      Throws:
      org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
    • isProcessableBand

      protected boolean isProcessableBand(int band)
      Parameters:
      band -
      Returns:
    • process

      public void process() throws ProcessingOperationException
      Description copied from interface: OperationServices
      Process the operation
      Specified by:
      process in interface OperationServices
      Overrides:
      process in class AbstractOperation
      Throws:
      ProcessingOperationException
    • postProcess

      public void postProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
      Description copied from interface: OperationServices
      Prepare the result
      Specified by:
      postProcess in interface OperationServices
      Overrides:
      postProcess in class AbstractOperation
      Throws:
      org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
    • 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
    • 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)