public class AtomIteratorWithinModel extends java.lang.Object implements AtomIndexIterator
Modifier and Type | Field and Description |
---|---|
private int |
atomIndex |
private Atom[] |
atoms |
protected Bspf |
bspf |
private java.util.BitSet |
bsSelected |
private boolean |
checkGreater |
protected CubeIterator |
cubeIterator |
private float |
distanceSquared |
private boolean |
hemisphereOnly |
private int |
iNext |
private boolean |
isGreaterOnly |
private boolean |
isVdw |
private boolean |
isZeroBased |
protected int |
modelIndex |
private RadiusData |
radiusData |
private boolean |
threadSafe |
private float |
vdw1 |
private Viewer |
viewer |
private int |
zeroBase |
Constructor and Description |
---|
AtomIteratorWithinModel() |
Modifier and Type | Method and Description |
---|---|
void |
addAtoms(java.util.BitSet bsResult)
turns this into a SPHERICAL iterator
for "within Distance" measures
|
float |
foundDistance2() |
boolean |
hasNext() |
(package private) void |
initialize(Bspf bspf,
java.util.BitSet bsSelected,
boolean isGreaterOnly,
boolean isZeroBased,
boolean hemisphereOnly,
boolean threadSafe)
############## ITERATOR SHOULD BE RELEASED #################
|
int |
next() |
void |
release() |
void |
set(ModelCollection modelSet,
int modelIndex,
int firstModelAtom,
int atomIndex,
javax.vecmath.Point3f center,
float distance,
RadiusData rd) |
void |
set(javax.vecmath.Point3f center,
float distance) |
protected CubeIterator cubeIterator
protected Bspf bspf
private boolean threadSafe
private boolean hemisphereOnly
private boolean isZeroBased
protected int modelIndex
private int atomIndex
private int zeroBase
private float distanceSquared
private java.util.BitSet bsSelected
private boolean isGreaterOnly
private boolean checkGreater
private RadiusData radiusData
private float vdw1
private boolean isVdw
private Atom[] atoms
private Viewer viewer
private int iNext
void initialize(Bspf bspf, java.util.BitSet bsSelected, boolean isGreaterOnly, boolean isZeroBased, boolean hemisphereOnly, boolean threadSafe)
bspf
- bsSelected
- isGreaterOnly
- isZeroBased
- hemisphereOnly
- TODOthreadSafe
- public void set(ModelCollection modelSet, int modelIndex, int firstModelAtom, int atomIndex, javax.vecmath.Point3f center, float distance, RadiusData rd)
set
in interface AtomIndexIterator
firstModelAtom
- an offset used in the AtomIteratorWithinSet onlypublic void set(javax.vecmath.Point3f center, float distance)
set
in interface AtomIndexIterator
public boolean hasNext()
hasNext
in interface AtomIndexIterator
public int next()
next
in interface AtomIndexIterator
public float foundDistance2()
foundDistance2
in interface AtomIndexIterator
public void addAtoms(java.util.BitSet bsResult)
addAtoms
in interface AtomIndexIterator
bsResult
- public void release()
release
in interface AtomIndexIterator