|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.dataop.barithm.RasterDataLoop
public class RasterDataLoop
A utility class which is used to iterate over all pixels within a region of a data raster and to evaluate
any number of Terms on each pixel.
| Nested Class Summary | |
|---|---|
static interface |
RasterDataLoop.Body
Represents the body to be evaluated for each pixel within the raster. |
| Constructor Summary | |
|---|---|
RasterDataLoop(int offsetX,
int offsetY,
int regionWidth,
int regionHeight,
Term[] terms,
com.bc.ceres.core.ProgressMonitor pm)
Creates an instance of this class for the given region and terms. |
|
RasterDataLoop(RasterDataEvalEnv rasterDataEvalEnv,
Term[] terms,
com.bc.ceres.core.ProgressMonitor pm)
Creates an instance of this class for the given region and terms. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RasterDataLoop(int offsetX,
int offsetY,
int regionWidth,
int regionHeight,
Term[] terms,
com.bc.ceres.core.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 progress
public RasterDataLoop(RasterDataEvalEnv rasterDataEvalEnv,
Term[] terms,
com.bc.ceres.core.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 progress| Method Detail |
|---|
public 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 message
IOException - if the raster data could not be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||