org.jmol.modelset
Class AtomIteratorWithinSet
java.lang.Object
org.jmol.modelset.AtomIteratorWithinSet
- All Implemented Interfaces:
- AtomIndexIterator
class AtomIteratorWithinSet
- extends java.lang.Object
- implements AtomIndexIterator
Method Summary |
float |
foundDistance2()
|
boolean |
hasNext()
|
(package private) void |
initialize(Bspf bspf,
int bsptIndex,
int atomIndex,
javax.vecmath.Point3f center,
float distance,
java.util.BitSet bsSelected,
boolean isGreaterOnly,
int zerobase)
a more powerful iterator than AtomIteratorWithinModel
allowing excluding a specific atom, finding only those
atoms with an atom index greater than that specified
or atoms within a specific selected subset of atoms. |
int |
next()
|
void |
release()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bsptIter
CubeIterator bsptIter
bsSelected
java.util.BitSet bsSelected
isGreaterOnly
boolean isGreaterOnly
atomIndex
int atomIndex
zerobase
int zerobase
iNext
int iNext
AtomIteratorWithinSet
AtomIteratorWithinSet()
initialize
void initialize(Bspf bspf,
int bsptIndex,
int atomIndex,
javax.vecmath.Point3f center,
float distance,
java.util.BitSet bsSelected,
boolean isGreaterOnly,
int zerobase)
- a more powerful iterator than AtomIteratorWithinModel
allowing excluding a specific atom, finding only those
atoms with an atom index greater than that specified
or atoms within a specific selected subset of atoms.
Returns atoms within a cube centered on the point
Does NOT return i == atomIndex
- Parameters:
bspf
- bsptIndex
- atomIndex
- center
- distance
- bsSelected
- isGreaterOnly
- zerobase
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface AtomIndexIterator
next
public int next()
- Specified by:
next
in interface AtomIndexIterator
foundDistance2
public float foundDistance2()
- Specified by:
foundDistance2
in interface AtomIndexIterator
release
public void release()
- Specified by:
release
in interface AtomIndexIterator