org.jmol.modelset
Class AtomIteratorWithinSet

java.lang.Object
  extended by org.jmol.modelset.AtomIteratorWithinSet
All Implemented Interfaces:
AtomIndexIterator

 class AtomIteratorWithinSet
extends java.lang.Object
implements AtomIndexIterator


Field Summary
(package private)  int atomIndex
           
(package private)  CubeIterator bsptIter
           
(package private)  java.util.BitSet bsSelected
           
(package private)  int iNext
           
(package private)  boolean isGreaterOnly
           
(package private)  int zerobase
           
 
Constructor Summary
AtomIteratorWithinSet()
           
 
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
 

Field Detail

bsptIter

CubeIterator bsptIter

bsSelected

java.util.BitSet bsSelected

isGreaterOnly

boolean isGreaterOnly

atomIndex

int atomIndex

zerobase

int zerobase

iNext

int iNext
Constructor Detail

AtomIteratorWithinSet

AtomIteratorWithinSet()
Method Detail

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