|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmol.bspt.CubeIterator
public class CubeIterator
Iterator used for finding all points within a box or a hemi-box
Obtain a CubeIterator by calling Bspt.allocateCubeIterator().
call initialize(...) or initializeHemizphere(...)
re-initialize in order to reuse the same CubeIterator
Field Summary | |
---|---|
private Bspt |
bspt
|
private float[] |
centerValues
|
private float |
cx
|
private float |
cy
|
private float |
cz
|
private float |
dx
|
private float |
dy
|
private float |
dz
|
private Leaf |
leaf
|
private int |
leafIndex
|
private float |
radius
|
private int |
sp
|
private Element[] |
stack
|
private boolean |
tHemisphere
|
Constructor Summary | |
---|---|
CubeIterator(Bspt bspt)
|
Method Summary | |
---|---|
private void |
findLeftLeaf()
does the work |
float |
foundDistance2()
After calling nextElement(), allows one to find out the value of the distance squared. |
boolean |
hasMoreElements()
normal iterator predicate |
void |
initialize(javax.vecmath.Point3f center,
float radius,
boolean hemisphereOnly)
initialize to return all points within the sphere defined by center and radius |
private boolean |
isWithinRadius(javax.vecmath.Point3f t)
checks one Point3f for distance |
javax.vecmath.Point3f |
nextElement()
normal iterator method |
void |
release()
nulls internal references |
(package private) void |
set(Bspt bspt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Bspt bspt
private Element[] stack
private int sp
private int leafIndex
private Leaf leaf
private float radius
private float[] centerValues
private float cx
private float cy
private float cz
private float dx
private float dy
private float dz
private boolean tHemisphere
Constructor Detail |
---|
CubeIterator(Bspt bspt)
Method Detail |
---|
void set(Bspt bspt)
public void initialize(javax.vecmath.Point3f center, float radius, boolean hemisphereOnly)
center
- radius
- hemisphereOnly
- public void release()
public boolean hasMoreElements()
public javax.vecmath.Point3f nextElement()
public float foundDistance2()
private void findLeftLeaf()
private boolean isWithinRadius(javax.vecmath.Point3f t)
t
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |