|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaitools.jiffle.runtime.AbstractJiffleRuntime
jaitools.jiffle.runtime.AbstractDirectRuntime
public abstract class AbstractDirectRuntime
The default abstract base class for runtime classes that implement direct evaluation.
| Field Summary | |
|---|---|
protected int |
_height
Processing bounds height |
protected int |
_maxx
Processing bounds max X ordinate |
protected int |
_maxy
Processing bounds max Y ordinate |
protected int |
_minx
Processing bounds min X ordinate |
protected int |
_miny
Processing bounds min Y ordinate |
protected int |
_width
Processing bounds width |
protected Map |
images
Maps image variable names ( String) to images
(RenderedImage). |
protected Map |
readers
Maps source image variable names ( String) to image
iterators (RandomIter). |
protected Map |
writers
Maps destination image variable names ( String to
image iterators (WritableRandomIter). |
| Fields inherited from class jaitools.jiffle.runtime.AbstractJiffleRuntime |
|---|
_FN, _outsideValue, _outsideValueSet, _stk |
| Constructor Summary | |
|---|---|
AbstractDirectRuntime()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
evaluateAll(JiffleProgressListener pl)
Evaluates the script for all locations in the destination image(s). |
double |
readFromImage(String imageName,
int x,
int y,
int band)
Gets a value from a source image as a double. |
void |
setBounds(int minx,
int miny,
int width,
int height)
Set the bounds of the processing area. |
void |
setDestinationImage(String imageName,
WritableRenderedImage image)
Associates a name, as used in the Jiffle script, with a destination image. |
void |
setSourceImage(String imageName,
RenderedImage image)
Associates a name, as used in the Jiffle script, with a source image. |
void |
writeToImage(String imageName,
int x,
int y,
int band,
double value)
Writes a value to a destination image. |
| Methods inherited from class jaitools.jiffle.runtime.AbstractJiffleRuntime |
|---|
getVar, initImageScopeVars, initOptionVars |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jaitools.jiffle.runtime.JiffleDirectRuntime |
|---|
evaluate |
| Methods inherited from interface jaitools.jiffle.runtime.JiffleRuntime |
|---|
getVar |
| Field Detail |
|---|
protected Map images
String) to images
(RenderedImage).
protected Map readers
String) to image
iterators (RandomIter).
protected Map writers
String to
image iterators (WritableRandomIter).
protected int _minx
protected int _miny
protected int _maxx
protected int _maxy
protected int _width
protected int _height
| Constructor Detail |
|---|
public AbstractDirectRuntime()
| Method Detail |
|---|
public void setDestinationImage(String imageName,
WritableRenderedImage image)
setDestinationImage in interface JiffleDirectRuntimeimageName - image name as used in the Jiffle scriptimage - writable image
public void setBounds(int minx,
int miny,
int width,
int height)
setBounds in interface JiffleRuntimeminx - min X pixel ordinateminy - min Y pixel ordinatewidth - width of processing areaheight - height of processing area
public void setSourceImage(String imageName,
RenderedImage image)
setSourceImage in interface JiffleDirectRuntimeimageName - image name as used in the Jiffle scriptimage - writable imagepublic void evaluateAll(JiffleProgressListener pl)
evaluateAll in interface JiffleDirectRuntimepl - an optional progress listener (may be null
public double readFromImage(String imageName,
int x,
int y,
int band)
readFromImage in interface JiffleDirectRuntimeimageName - the source imagex - source X ordinatey - source Y ordinateband - source band
public void writeToImage(String imageName,
int x,
int y,
int band,
double value)
writeToImage in interface JiffleDirectRuntimex - destination X ordinatey - destination Y ordinateband - destination bandvalue - the value to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||