cz.cuni.jagrlib
Class DefaultBrepIteratorOrd
java.lang.Object
cz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.DefaultBrepIterator
cz.cuni.jagrlib.DefaultBrepIteratorOrd
- All Implemented Interfaces:
- BrepIterator, Property
- Direct Known Subclasses:
- VEFDS.DivisionIterator, VEFDS.EdgeIterator, VEFDS.FaceIterator, VEFDS.SolidIterator, VEFDS.VertexIterator
public abstract class DefaultBrepIteratorOrd
- extends DefaultBrepIterator
Default implementation of BrepIterator
interface - using simple ordinal value.
- Version:
- 0.25 $Rev: 401 $ $Date: 2007-03-11 13:15:07 +0100 (ne, 11 III 2007) $ $Author: pepca $
- See Also:
- DefaultBrepIteratorOrd.java
Field Summary |
protected int |
n
Next object's id. |
Method Summary |
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 |
n
protected int n
- Next object's id.
DefaultBrepIteratorOrd
public DefaultBrepIteratorOrd()
reset
public void reset()
- Reset the iterator.
- Specified by:
reset
in interface BrepIterator
- Specified by:
reset
in class DefaultBrepIterator
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
- Overrides:
toArray
in class DefaultBrepIterator