org.jmol.modelset
Class AtomIteratorWithinModel

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

public class AtomIteratorWithinModel
extends java.lang.Object
implements AtomIndexIterator


Field Summary
(package private)  CubeIterator bsptIter
           
 
Constructor Summary
AtomIteratorWithinModel()
           
 
Method Summary
 float foundDistance2()
           
 boolean hasNext()
           
(package private)  void initialize(Bspf bspf, int bsptIndex, javax.vecmath.Point3f center, float radius)
          just the basic iterator for finding atoms within a cube centered on some point in space Used for select within(distance, atom)
 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
Constructor Detail

AtomIteratorWithinModel

public AtomIteratorWithinModel()
Method Detail

initialize

void initialize(Bspf bspf,
                int bsptIndex,
                javax.vecmath.Point3f center,
                float radius)
just the basic iterator for finding atoms within a cube centered on some point in space Used for select within(distance, atom)

Parameters:
bspf -
bsptIndex -
center -
radius -

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