|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.DefaultBrepIterator
cz.cuni.jagrlib.testing.UniformGrid.CenterIterator
protected class UniformGrid.CenterIterator
Custom iterator for center pass.
| Field Summary | |
|---|---|
protected double[] |
act0
Temporary array to hold vertex coordinates. |
protected double[] |
act1
|
protected double[] |
center
Center of the pass. |
protected java.util.SortedSet<UniformGrid.GridHeapItem> |
heap
Working heap. |
protected double |
maxRadius
Maximal radius to be searched. |
protected java.util.BitSet |
used
Set of already examined objects. |
protected int[] |
vert
Temporary array for edge (face) vertex handles. |
| Fields inherited from interface cz.cuni.jagrlib.iface.BrepIterator |
|---|
CONTEXT, PROJ_COORDS, SORT_ASCENDING, SORT_DESCENDING, SORT_ORDER |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
protected |
UniformGrid.CenterIterator()
|
| Method Summary | |
|---|---|
void |
init(double[] center,
double maxR)
|
protected void |
initHeap()
Initializes the heap (should be called at the beginning of each pass). |
protected void |
insertCell(int index)
Inserts all objects from the given cell into the heap. |
int |
next()
Returns the next object or NULL. |
void |
reset()
Reset the iterator. |
| Methods inherited from class cz.cuni.jagrlib.DefaultBrepIterator |
|---|
left, toArray |
| 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 |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Field Detail |
|---|
protected double[] center
protected double maxRadius
protected java.util.SortedSet<UniformGrid.GridHeapItem> heap
protected final java.util.BitSet used
protected final double[] act0
protected final double[] act1
protected final int[] vert
| Constructor Detail |
|---|
protected UniformGrid.CenterIterator()
| Method Detail |
|---|
public void init(double[] center,
double maxR)
protected void insertCell(int index)
protected void initHeap()
public void reset()
reset in interface BrepIteratorreset in class DefaultBrepIteratorpublic final int next()
NULL.
next in interface BrepIteratornext in class DefaultBrepIteratorBrep.NULL if there is no next object available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||