Class UnitCellIterator

java.lang.Object
org.jmol.symmetry.UnitCellIterator
All Implemented Interfaces:
AtomIndexIterator

public class UnitCellIterator extends Object implements AtomIndexIterator
  • Field Details

    • atoms

      private Atom[] atoms
    • center

      private javajs.util.T3 center
    • translation

      private javajs.util.T3 translation
    • nFound

      private int nFound
    • maxDistance2

      private float maxDistance2
    • distance2

      private float distance2
    • unitCell

      private SymmetryInterface unitCell
    • minXYZ

      private javajs.util.P3i minXYZ
    • maxXYZ

      private javajs.util.P3i maxXYZ
    • t

      private javajs.util.P3i t
    • p

      private javajs.util.P3 p
    • ipt

      private int ipt
    • unitList

      private javajs.util.Lst<javajs.util.P3[]> unitList
    • done

      private boolean done
    • nAtoms

      private int nAtoms
    • listPt

      private int listPt
  • Constructor Details

    • UnitCellIterator

      public UnitCellIterator()
  • Method Details

    • set

      public UnitCellIterator set(SymmetryInterface unitCell, Atom atom, Atom[] atoms, javajs.util.BS bsAtoms, float distance)
      Parameters:
      unitCell -
      atom -
      atoms -
      bsAtoms -
      distance - invalid input: '<'= 0 indicates that distance will be set later, probably from a point
      Returns:
      this
    • setModel

      public void setModel(ModelSet modelSet, int modelIndex, int zeroBase, int atomIndex, javajs.util.T3 center, float distance, RadiusData rd)
      Specified by:
      setModel in interface AtomIndexIterator
      Parameters:
      modelSet -
      modelIndex -
      zeroBase - an offset used in the AtomIteratorWithinSet only
      atomIndex -
      center -
      distance -
      rd -
    • setCenter

      public void setCenter(javajs.util.T3 center, float distance)
      Specified by:
      setCenter in interface AtomIndexIterator
    • addAtoms

      public void addAtoms(javajs.util.BS bsAtoms)
      Specified by:
      addAtoms in interface AtomIndexIterator
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface AtomIndexIterator
    • nextCell

      private boolean nextCell()
    • next

      public int next()
      Specified by:
      next in interface AtomIndexIterator
    • getAtom

      private Atom getAtom()
    • foundDistance2

      public float foundDistance2()
      Specified by:
      foundDistance2 in interface AtomIndexIterator
    • getPosition

      public javajs.util.P3 getPosition()
      Specified by:
      getPosition in interface AtomIndexIterator
    • release

      public void release()
      Specified by:
      release in interface AtomIndexIterator