cz.cuni.jagrlib
Class DefaultBrepIterator
java.lang.Object
cz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.DefaultBrepIterator
- All Implemented Interfaces:
- BrepIterator, Property
- Direct Known Subclasses:
- DefaultBrepIteratorArr, DefaultBrepIteratorOrd, UniformGrid.CenterIterator, UniformGrid.RayIteratorOld, UniformGrid.RaySegmentIterator2D, UniformGrid.RayTriangleIterator3D
public abstract class DefaultBrepIterator
- extends DefaultProperty
- implements BrepIterator
Default implementation of BrepIterator
interface.
- Version:
- 0.25 $Rev: 401 $ $Date: 2007-03-11 13:15:07 +0100 (ne, 11 III 2007) $ $Author: pepca $
- See Also:
- DefaultBrepIterator.java
Method Summary |
int |
left()
How many items remain in the set?. |
abstract int |
next()
Returns id of the next object. |
abstract 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 class cz.cuni.jagrlib.DefaultProperty |
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBrepIterator
public DefaultBrepIterator()
reset
public abstract void reset()
- Reset the iterator.
- Specified by:
reset
in interface BrepIterator
next
public abstract int next()
- Returns id of the next object.
- Specified by:
next
in interface BrepIterator
- Returns:
Brep.NULL
if there is no next object available.
toArray
public 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
.
- Specified by:
toArray
in interface BrepIterator
left
public int left()
- How many items remain in the set?.
Non-mandatory - must return
Brep.NULL
if not implemented.
- Specified by:
left
in interface BrepIterator