Modifier and Type | Class and Description |
---|---|
static interface |
RasterDataLoop.Body
Represents the body to be evaluated for each pixel within the raster.
|
Constructor and Description |
---|
RasterDataLoop(int offsetX,
int offsetY,
int regionWidth,
int regionHeight,
Term[] terms,
ProgressMonitor pm)
Creates an instance of this class for the given region and terms.
|
RasterDataLoop(RasterDataEvalEnv rasterDataEvalEnv,
Term[] terms,
ProgressMonitor pm)
Creates an instance of this class for the given region and terms.
|
Modifier and Type | Method and Description |
---|---|
void |
forEachPixel(RasterDataLoop.Body body)
Evaluates the
body by calling its eval() method. |
void |
forEachPixel(RasterDataLoop.Body body,
String message)
Evaluates the
body by calling its eval() method. |
int |
getOffsetX() |
int |
getOffsetY() |
int |
getRegionHeight() |
int |
getRegionWidth() |
Term[] |
getTerms() |
public RasterDataLoop(int offsetX, int offsetY, int regionWidth, int regionHeight, Term[] terms, ProgressMonitor pm)
offsetX
- the X-offset of the region.offsetY
- the Y-offset of the region.regionWidth
- the width of the region.regionHeight
- the height of the region.terms
- an array of terms.pm
- a monitor to inform the user about progresspublic RasterDataLoop(RasterDataEvalEnv rasterDataEvalEnv, Term[] terms, ProgressMonitor pm)
rasterDataEvalEnv
- the raster data evaluation environment passed to the term evaluationterms
- an array of terms.pm
- a monitor to inform the user about progresspublic int getOffsetX()
public int getOffsetY()
public int getRegionWidth()
public int getRegionHeight()
public Term[] getTerms()
public void forEachPixel(RasterDataLoop.Body body) throws IOException
body
by calling its eval()
method.
This method just delegates to forEachPixel(body, null)
.body
- the object whose eval
method is called.IOException
- if the raster data could not be read.public void forEachPixel(RasterDataLoop.Body body, String message) throws IOException
body
by calling its eval()
method.body
- the object whose eval
method is called.message
- the progress messageIOException
- if the raster data could not be read.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.