public class GBoundsIterator extends GBounds implements java.lang.Cloneable, SDBIterator
Constructor and Description |
---|
GBoundsIterator(GBounds space,
float[] shape)
Construct an GBoundsIterator that will traverse the given space with an
an GBounds of the given shape (dimensions).
|
GBoundsIterator(GBounds space,
float[] shape,
AxisOrdering ordering) |
GBoundsIterator(GBounds space,
IndexSpaceID dimensions) |
GBoundsIterator(GBounds space,
int[] dimensions) |
GBoundsIterator(GBounds space,
Point start,
float[] shape) |
GBoundsIterator(GBounds space,
Point start,
float[] shape,
AxisOrdering ordering) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a copy of this GBoundsIterator
|
GBounds |
copyBounds()
Return a simple GBounds corresponding to the current value of this iterator.
|
void |
end()
Not implemented.
|
float |
getAxisLength(int axis)
Return the length of this iterator's space along the specified axis.
|
float[] |
getAxisLengthArray()
Returns an array of ints representing the dimensions of
the space being iterated over.
|
AxisOrdering |
getAxisOrdering()
Return the AxisOrdering object for this iterator.
|
Point |
getBlockShape()
Return an IndexSpaceID representing the shape of the iterator's blocks.
|
void |
init()
Initialize this GBoundsIterator so that its value is set to the first GBounds in the iteration.
|
static void |
main(java.lang.String[] args)
For debugging.
|
boolean |
next()
Moving the GBoundsIterator to the next position.
|
java.lang.String |
toString()
Return a String representing the object.
|
java.lang.String |
toString(java.lang.String indent)
Return description of this GBoundsIterator
|
boolean |
valid()
Return true if the current position is a valid position in the
IndexSpace.
|
boundingVolume, contains, contains, contains, copy, copyAndMoveToOrigin, dim, equals, getDimension, getDimensions, getDimensions, getLower, getLowerArray, getUpper, getUpperArray, intersects, move, move, moveTo, moveTo, moveToOrigin, setLower, setLower, setUpper, setUpper, volume
public GBoundsIterator(GBounds space, float[] shape)
public GBoundsIterator(GBounds space, IndexSpaceID dimensions)
public GBoundsIterator(GBounds space, int[] dimensions)
public GBoundsIterator(GBounds space, float[] shape, AxisOrdering ordering)
public GBoundsIterator(GBounds space, Point start, float[] shape, AxisOrdering ordering)
public void init()
init
in interface SDBIterator
public final AxisOrdering getAxisOrdering()
public final float getAxisLength(int axis)
public final float[] getAxisLengthArray()
public final Point getBlockShape()
public boolean valid()
valid
in interface SDBIterator
public boolean next()
next
in interface SDBIterator
public void end()
end
in interface SDBIterator
public GBounds copyBounds()
copyBounds
in class GBounds
public java.lang.Object clone()
public java.lang.String toString()
public java.lang.String toString(java.lang.String indent)
public static void main(java.lang.String[] args)