org.jmol.symmetry
Class UnitCell

java.lang.Object
  extended by org.jmol.util.SimpleUnitCell
      extended by org.jmol.symmetry.UnitCell

 class UnitCell
extends SimpleUnitCell

a class private to the org.jmol.symmetry package to be accessed only through the SymmetryInterface API adds vertices and offsets orientation, and a variety of additional calculations that in principle could be put in SimpleUnitCell if desired, but for now are in this optional package.


Field Summary
private  boolean allFractionalRelative
           
private  Point3f cartesianOffset
           
private  Point3f fractionalOffset
           
private static double twoP2
           
private  Point3f[] vertices
           
 
Fields inherited from class org.jmol.util.SimpleUnitCell
a, a_, alpha, b, b_, beta, c, c_, cA_, cB_, cosAlpha, cosBeta, cosGamma, dimension, gamma, matrixCartesianToFractional, matrixCtoFAbsolute, matrixFractionalToCartesian, matrixFtoCAbsolute, notionalUnitcell, sinAlpha, sinBeta, sinGamma, toRadians, volume
 
Constructor Summary
UnitCell(float[] notionalUnitcell)
           
 
Method Summary
private  void calcUnitcellVertices()
           
(package private)  String dumpInfo(boolean isFull)
           
(package private)  Point3f[] getCanonicalCopy(float scale)
           
(package private)  Point3f getCartesianOffset()
           
(package private)  Object[] getEllipsoid(float[] parBorU)
           
(package private)  Point3f getFractionalOffset()
           
(package private)  Point3f[] getVertices()
           
(package private) static Point3f ijkToPoint3f(int nnn)
           
(package private)  void setAllFractionalRelative(boolean TF)
           
(package private)  void setMinMaxLatticeParameters(Point3i minXYZ, Point3i maxXYZ)
           
(package private)  void setOffset(int nnn)
           
(package private)  void setOffset(Point3f pt)
           
(package private)  void setOrientation(Matrix3f mat)
           
private static float toFractional(float x)
           
(package private)  void toUnitCell(Point3f pt, Point3f offset)
          when offset is null,
 
Methods inherited from class org.jmol.util.SimpleUnitCell
getInfo, getNotionalUnitCell, getUnitCellAsArray, isPolymer, isSlab, isValid, toCartesian, toFractional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

private Point3f[] vertices

cartesianOffset

private Point3f cartesianOffset

fractionalOffset

private Point3f fractionalOffset

allFractionalRelative

private boolean allFractionalRelative

twoP2

private static final double twoP2
See Also:
Constant Field Values
Constructor Detail

UnitCell

UnitCell(float[] notionalUnitcell)
Method Detail

setOrientation

void setOrientation(Matrix3f mat)

toUnitCell

final void toUnitCell(Point3f pt,
                      Point3f offset)
when offset is null,

Parameters:
pt -
offset -

setAllFractionalRelative

void setAllFractionalRelative(boolean TF)

setOffset

void setOffset(Point3f pt)

setOffset

void setOffset(int nnn)

ijkToPoint3f

static Point3f ijkToPoint3f(int nnn)

setMinMaxLatticeParameters

void setMinMaxLatticeParameters(Point3i minXYZ,
                                Point3i maxXYZ)

dumpInfo

final String dumpInfo(boolean isFull)

getVertices

Point3f[] getVertices()

getCartesianOffset

Point3f getCartesianOffset()

getFractionalOffset

Point3f getFractionalOffset()

getEllipsoid

Object[] getEllipsoid(float[] parBorU)

getCanonicalCopy

Point3f[] getCanonicalCopy(float scale)

toFractional

private static float toFractional(float x)

calcUnitcellVertices

private void calcUnitcellVertices()