public class GIterator extends Point implements java.lang.Cloneable
Constructor and Description |
---|
GIterator(GBounds db)
Constructor taking an GBounds, which specifies the IndexSpace
|
GIterator(GBounds db,
AxisOrdering ord)
Constructor taking an GBounds, which specifies the Domain,
and the AxisOrdering which specifies the axis incrementation order
|
GIterator(GBounds db,
AxisOrdering ord,
float[] steps)
Constructor taking an GBounds, AxisOrdering and steps array
|
GIterator(GBounds db,
float[] steps)
Constructor taking an GBounds, which specifies the Domain
and the steps array allowing GIterator increment step other than 1
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a copy of this GIterator
|
boolean |
containedBy(GBounds db)
Returns true if this Point is contained by the
GBounds parameter, or false otherwise.
|
Point |
copyID()
Return a Point corresponding to the current position.
|
float |
getCoord(int axisNumber)
Get the value corresponding to the specified axis.
|
boolean |
hasMoreElements()
Return true if this GIterator can be incremented.
|
void |
init()
Initilize this ISiterator
|
static void |
main(java.lang.String[] args) |
boolean |
next()
Increment the GIterator to the next position.
|
void |
setBounds(GBounds bound)
Change the IndexSpace to which this GIterator is bound
|
void |
setCoord(int axisNumber,
float value)
Set the specified axis to the specified value.
|
java.lang.String |
toString()
Return a String representing the object.
|
java.lang.String |
toString(java.lang.String indent)
Return a String representing the object indented by the argument string.
|
boolean |
valid()
Return true if the current position is a valid position in the IndexSpace.
|
add, assign, assign, dim, distance, equal, getCoords, getFloatAxis, getIntAxis, greaterThanOrEqual, lessThanOrEqual, makeDatum, negate, print, setCoord, setCoords, subtract
public GIterator(GBounds db)
public GIterator(GBounds db, AxisOrdering ord)
public GIterator(GBounds db, float[] steps)
public GIterator(GBounds db, AxisOrdering ord, float[] steps)
public Point copyID()
public java.lang.Object clone()
public java.lang.String toString()
public java.lang.String toString(java.lang.String indent)
public void setBounds(GBounds bound)
public void init()
public float getCoord(int axisNumber)
public void setCoord(int axisNumber, float value)
public boolean valid()
public boolean next()
public boolean hasMoreElements()
public boolean containedBy(GBounds db)
containedBy
in class Point
public static void main(java.lang.String[] args)