public class RasterDataEvalEnv extends Object implements EvalEnv
Terms
which are operating on raster data.
The evaluation environment is passed to the evalB
,
evalI
and
evalB
methods
of a Term
.
Special implementations of the Symbol
and Function
interfaces, such as RasterDataSymbol
, can then use the environment in order to perform
raster data specific evaluations.
Constructor and Description |
---|
RasterDataEvalEnv(int offsetX,
int offsetY,
int regionWidth,
int regionHeight)
Constructs a new environment for the given raster data region.
|
RasterDataEvalEnv(int offsetX,
int offsetY,
int regionWidth,
int regionHeight,
LevelImageSupport levelImageSupport)
Constructs a new environment for the given raster data region.
|
Modifier and Type | Method and Description |
---|---|
int |
getElemIndex()
Gets the index of the current data element.
|
int |
getOffsetX()
Gets the x-offset of the raster region.
|
int |
getOffsetY()
Gets the y-offset of the raster region.
|
int |
getPixelX()
Gets the absolute pixel's x-coordinate within the data raster (from image at level zero in an image pyramid).
|
int |
getPixelY()
Gets the absolute pixel's y-coordinate within the data raster (from image at level zero in an image pyramid).
|
int |
getRegionHeight()
Gets the height of the raster region.
|
int |
getRegionWidth()
Gets the width of the raster region.
|
void |
setElemIndex(int elemIndex)
Sets the index of the current data element.
|
public RasterDataEvalEnv(int offsetX, int offsetY, int regionWidth, int regionHeight)
offsetX
- the x-offset of the raster regionoffsetY
- the y-offset of the raster regionregionWidth
- the width of the raster regionregionHeight
- the height of the raster regionpublic RasterDataEvalEnv(int offsetX, int offsetY, int regionWidth, int regionHeight, LevelImageSupport levelImageSupport)
getSourceX()
and getSourceY()
will return the correct pixel coordinate at level zero.offsetX
- the x-offset of the raster regionoffsetY
- the y-offset of the raster regionregionWidth
- the width of the raster regionregionHeight
- the height of the raster regionlevelImageSupport
- helps to compute the source pixels at level zeropublic int getOffsetX()
public int getOffsetY()
public int getRegionWidth()
public int getRegionHeight()
public final int getPixelX()
public final int getPixelY()
public final int getElemIndex()
public void setElemIndex(int elemIndex)
elemIndex
- the index of the current data elementCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.