es.unex.sextante.rasterWrappers
Class GridWrapperNotInterpolated
java.lang.Object
es.unex.sextante.rasterWrappers.GridWrapper
es.unex.sextante.rasterWrappers.GridWrapperNotInterpolated
public class GridWrapperNotInterpolated
- extends GridWrapper
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridWrapperNotInterpolated
public GridWrapperNotInterpolated(IRasterLayer layer,
GridExtent windowExtent)
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