|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.vecmath.geom.DefaultCellIterator
public class DefaultCellIterator
Constructor Summary | |
---|---|
DefaultCellIterator()
|
Method Summary | |
---|---|
CellIterator |
dup()
Returns a clone of this CellIterator . |
double |
getEnteringParameter()
Returns the parameter at which the current cell was entered. |
boolean |
hasNext()
|
protected boolean |
hasNextImpl()
|
void |
initialize(Octree tree)
This method has to be invoked once to initialize the iterator for a given octree. |
Octree.Cell |
next()
|
void |
remove()
|
void |
setLine(Line line)
This method has to invoked in order to start a new iteration sequence over the octree cells which intersect line . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCellIterator()
Method Detail |
---|
public CellIterator dup()
CellIterator
CellIterator
.
All constant variables which are related to the structure
of the octree are copied shallowly, state variables of the
iterator are newly created without copying.
dup
in interface CellIterator
public double getEnteringParameter()
CellIterator
#nextCell()
. This cell is entered at the
position line.start + parameter * line.direction
.
getEnteringParameter
in interface CellIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator<Octree.Cell>
protected boolean hasNextImpl()
public void initialize(Octree tree)
CellIterator
initialize
in interface CellIterator
tree
- the octreepublic Octree.Cell next()
next
in interface java.util.Iterator<Octree.Cell>
public void remove()
remove
in interface java.util.Iterator<Octree.Cell>
public void setLine(Line line)
CellIterator
line
.
setLine
in interface CellIterator
line
- the line for which octree cells shall be enumerated
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |