org.jmol.modelset

Class AtomIteratorWithinSet

class AtomIteratorWithinSet extends Object implements AtomIndexIterator

Field Summary
intatomIndex
CubeIteratorbsptIter
BitSetbsSelected
intiNext
booleanisGreaterOnly
intzerobase
Method Summary
floatfoundDistance2()
booleanhasNext()
voidinitialize(Bspf bspf, int bsptIndex, int atomIndex, Point3f center, float distance, 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.
intnext()
voidrelease()

Field Detail

atomIndex

int atomIndex

bsptIter

CubeIterator bsptIter

bsSelected

BitSet bsSelected

iNext

int iNext

isGreaterOnly

boolean isGreaterOnly

zerobase

int zerobase

Method Detail

foundDistance2

public float foundDistance2()

hasNext

public boolean hasNext()

initialize

void initialize(Bspf bspf, int bsptIndex, int atomIndex, Point3f center, float distance, 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

next

public int next()

release

public void release()