es.unex.sextante.rasterWrappers
Class GridWrapperInterpolated

java.lang.Object
  extended by es.unex.sextante.rasterWrappers.GridWrapper
      extended by es.unex.sextante.rasterWrappers.GridWrapperInterpolated

public class GridWrapperInterpolated
extends GridWrapper

A grid wrapper that performs interpolation to calculate cell values. This should be used when the window extent does not 'fit' into the structure (coordinates and cellsize) of the grid.

Author:
Victor Olaya

Field Summary
 
Fields inherited from class es.unex.sextante.rasterWrappers.GridWrapper
INTERPOLATION_BicubicSpline, INTERPOLATION_Bilinear, INTERPOLATION_BSpline, INTERPOLATION_InverseDistance, INTERPOLATION_NearestNeighbour
 
Constructor Summary
GridWrapperInterpolated(IRasterLayer layer, GridExtent windowExtent)
           
 
Method Summary
 byte getCellValueAsByte(int x, int y)
           
 byte getCellValueAsByte(int x, int y, int band)
           
 double getCellValueAsDouble(int x, int y)
           
 double getCellValueAsDouble(int x, int y, int band)
           
 float getCellValueAsFloat(int x, int y)
           
 float getCellValueAsFloat(int x, int y, int band)
           
 int getCellValueAsInt(int x, int y)
           
 int getCellValueAsInt(int x, int y, int band)
           
 short getCellValueAsShort(int x, int y)
           
 short getCellValueAsShort(int x, int y, int band)
           
 
Methods inherited from class es.unex.sextante.rasterWrappers.GridWrapper
getCellSize, getGridExtent, getNoDataValue, getNX, getNY, getValueAt, isNoDataValue, setInterpolationMethod
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridWrapperInterpolated

public GridWrapperInterpolated(IRasterLayer layer,
                               GridExtent windowExtent)
Method Detail

getCellValueAsByte

public byte getCellValueAsByte(int x,
                               int y)
Specified by:
getCellValueAsByte in class GridWrapper

getCellValueAsByte

public byte getCellValueAsByte(int x,
                               int y,
                               int band)
Specified by:
getCellValueAsByte in class GridWrapper

getCellValueAsShort

public short getCellValueAsShort(int x,
                                 int y)
Specified by:
getCellValueAsShort in class GridWrapper

getCellValueAsShort

public short getCellValueAsShort(int x,
                                 int y,
                                 int band)
Specified by:
getCellValueAsShort in class GridWrapper

getCellValueAsInt

public int getCellValueAsInt(int x,
                             int y)
Specified by:
getCellValueAsInt in class GridWrapper

getCellValueAsInt

public int getCellValueAsInt(int x,
                             int y,
                             int band)
Specified by:
getCellValueAsInt in class GridWrapper

getCellValueAsFloat

public float getCellValueAsFloat(int x,
                                 int y)
Specified by:
getCellValueAsFloat in class GridWrapper

getCellValueAsFloat

public float getCellValueAsFloat(int x,
                                 int y,
                                 int band)
Specified by:
getCellValueAsFloat in class GridWrapper

getCellValueAsDouble

public double getCellValueAsDouble(int x,
                                   int y)
Specified by:
getCellValueAsDouble in class GridWrapper

getCellValueAsDouble

public double getCellValueAsDouble(int x,
                                   int y,
                                   int band)
Specified by:
getCellValueAsDouble in class GridWrapper