Class GridWrapperNotInterpolated
java.lang.Object
org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapper
org.openjump.core.rasterimage.sextante.rasterWrappers.GridWrapperNotInterpolated
A grid wrapper that does not perform interpolation to
calculate cell values. This should be used when the window
extent 'fits' into the structure (coordinates and cellsize)
of the grid, so it is faster than using a grid wrapper with
interpolation
Upon construction, cellsizes are not checked, so they are assumed
to be equal. Use a QueryableGridWindow to safely create a GridWrapper
better than instantiating this class directly.
- Author:
- Victor Olaya
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGridWrapperNotInterpolated(ISextanteRasterLayer layer, GridExtent windowExtent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbytegetCellValueAsByte(int x, int y) bytegetCellValueAsByte(int x, int y, int band) doublegetCellValueAsDouble(int x, int y) doublegetCellValueAsDouble(int x, int y, int band) floatgetCellValueAsFloat(int x, int y) floatgetCellValueAsFloat(int x, int y, int band) intgetCellValueAsInt(int x, int y) intgetCellValueAsInt(int x, int y, int band) shortgetCellValueAsShort(int x, int y) shortgetCellValueAsShort(int x, int y, int band) Methods inherited from class GridWrapper
getCellSize, getCellValueInLayerCoords, getGridExtent, getNoDataValue, getNX, getNY, getValueAt, isInLayer, isNoDataValue, setInterpolationMethod
-
Constructor Details
-
GridWrapperNotInterpolated
-
-
Method Details
-
calculateOffsets
protected void calculateOffsets() -
getCellValueAsByte
public byte getCellValueAsByte(int x, int y) - Specified by:
getCellValueAsBytein classGridWrapper
-
getCellValueAsByte
public byte getCellValueAsByte(int x, int y, int band) - Specified by:
getCellValueAsBytein classGridWrapper
-
getCellValueAsShort
public short getCellValueAsShort(int x, int y) - Specified by:
getCellValueAsShortin classGridWrapper
-
getCellValueAsShort
public short getCellValueAsShort(int x, int y, int band) - Specified by:
getCellValueAsShortin classGridWrapper
-
getCellValueAsInt
public int getCellValueAsInt(int x, int y) - Specified by:
getCellValueAsIntin classGridWrapper
-
getCellValueAsInt
public int getCellValueAsInt(int x, int y, int band) - Specified by:
getCellValueAsIntin classGridWrapper
-
getCellValueAsFloat
public float getCellValueAsFloat(int x, int y) - Specified by:
getCellValueAsFloatin classGridWrapper
-
getCellValueAsFloat
public float getCellValueAsFloat(int x, int y, int band) - Specified by:
getCellValueAsFloatin classGridWrapper
-
getCellValueAsDouble
public double getCellValueAsDouble(int x, int y) - Specified by:
getCellValueAsDoublein classGridWrapper
-
getCellValueAsDouble
public double getCellValueAsDouble(int x, int y, int band) - Specified by:
getCellValueAsDoublein classGridWrapper
-