cz.cuni.jagrlib.iface
Interface BrepIterator

All Superinterfaces:
Property
All Known Implementing Classes:
DefaultBrepIterator, DefaultBrepIteratorArr, DefaultBrepIteratorOrd, DepthSort, UniformGrid.CenterIterator, UniformGrid.RayIteratorOld, UniformGrid.RaySegmentIterator2D, UniformGrid.RayTriangleIterator3D, VEFDS.DivisionIterator, VEFDS.EdgeInFaceIterator, VEFDS.EdgeIterator, VEFDS.FaceInSolidIterator, VEFDS.FaceIterator, VEFDS.SolidIterator, VEFDS.VertexInFaceIterator, VEFDS.VertexIterator

public interface BrepIterator
extends Property

Interface for Brep-iterator objects.

See Also:
BrepIterator.java

Field Summary
static java.lang.String CONTEXT
          Property: context to be traversed - for scene sorting (int).
static java.lang.String PROJ_COORDS
          Property: name of projected-coordinates attribute.
static int SORT_ASCENDING
          Sort order: less Z-value goes first.
static int SORT_DESCENDING
          Sort order: greater Z-value goes first.
static java.lang.String SORT_ORDER
          Property: sort order for depth-sorting (int).
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 int left()
          How many items remain in the set?
 int next()
          Returns id of the next object.
 void reset()
          Reset the iterator.
 int[] toArray(int[] pre)
          Fills the provided array by all items (pre-allocated array could be null or too small - in these cases new one will be created).
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Field Detail

SORT_ORDER

static final java.lang.String SORT_ORDER
Property: sort order for depth-sorting (int).

See Also:
Constant Field Values

SORT_ASCENDING

static final int SORT_ASCENDING
Sort order: less Z-value goes first.

See Also:
Constant Field Values

SORT_DESCENDING

static final int SORT_DESCENDING
Sort order: greater Z-value goes first.

See Also:
Constant Field Values

CONTEXT

static final java.lang.String CONTEXT
Property: context to be traversed - for scene sorting (int).

See Also:
Constant Field Values

PROJ_COORDS

static final java.lang.String PROJ_COORDS
Property: name of projected-coordinates attribute. Needs not be changed - default value is Brep.COORD_PROJ.

See Also:
Constant Field Values
Method Detail

reset

void reset()
Reset the iterator.


next

int next()
Returns id of the next object.

Returns:
Brep.NULL if there is no next object available.

toArray

int[] toArray(int[] pre)
Fills the provided array by all items (pre-allocated array could be null or too small - in these cases new one will be created). End of the data is marked using Brep.NULL.


left

int left()
How many items remain in the set? Non-mandatory - must return Brep.NULL if not implemented.