org.jmol.modelset
Class BoxInfo

java.lang.Object
  extended by org.jmol.modelset.BoxInfo

public class BoxInfo
extends Object


Field Summary
static char[] bbcageTickEdges
           
private  Point3f bbCenter
           
private  Point3f bbCorner0
           
private  Point3f bbCorner1
           
private  Vector3f bbVector
           
private  Point3fi[] bbVertices
           
protected static Point3i[] cubeVertexOffsets
           
static byte[] edges
           
private static Point3i[] facePoints
           
static int[] toCanonical
           
static char[] uccageTickEdges
           
private static Point3f[] unitBboxPoints
           
static Point3f[] unitCubePoints
           
 
Constructor Summary
BoxInfo()
           
 
Method Summary
(package private)  void addBoundBoxPoint(Point3f pt)
           
 Point3fi[] getBboxVertices()
           
 Point3f getBoundBoxCenter()
           
 Vector3f getBoundBoxCornerVector()
           
(package private)  Hashtable getBoundBoxInfo()
           
 Point3f[] getBoundBoxPoints()
           
 Point3f[] getCanonicalCopy(float scale)
           
static Point3f[] getCanonicalCopy(Point3f[] bbUcPoints, float scale)
           
static Point3f[] getCriticalPoints(Point3f[] bbVertices, Point3f offset)
           
static Point4f[] getFacesFromCriticalPoints(Point3f[] points)
           
 List intersectPlane(Point4f plane, float scale, int flags)
          returns a set of points defining the geometric object within the given plane that spans the unit cell within the given margins
(package private)  boolean isWithin(Point3f pt)
           
(package private)  void reset()
           
static void scaleBox(Point3f[] pts, float scale)
           
(package private)  void setBbcage(float scale)
           
(package private)  void setBoundBox(Point3f pt1, Point3f pt2, boolean byCorner, float scale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bbCorner0

private final Point3f bbCorner0

bbCorner1

private final Point3f bbCorner1

bbCenter

private final Point3f bbCenter

bbVector

private final Vector3f bbVector

bbVertices

private final Point3fi[] bbVertices

bbcageTickEdges

public static char[] bbcageTickEdges

uccageTickEdges

public static char[] uccageTickEdges

edges

public static final byte[] edges

unitCubePoints

public static final Point3f[] unitCubePoints

facePoints

private static Point3i[] facePoints

toCanonical

public static final int[] toCanonical

cubeVertexOffsets

protected static final Point3i[] cubeVertexOffsets

unitBboxPoints

private static final Point3f[] unitBboxPoints
Constructor Detail

BoxInfo

public BoxInfo()
Method Detail

intersectPlane

public List intersectPlane(Point4f plane,
                           float scale,
                           int flags)
returns a set of points defining the geometric object within the given plane that spans the unit cell within the given margins

Parameters:
plane -
scale -
flags - 0 -- polygon int[] 1 -- edges only 2 -- triangles only 3 -- both
Returns:
a set of points

getCanonicalCopy

public Point3f[] getCanonicalCopy(float scale)

getCanonicalCopy

public static final Point3f[] getCanonicalCopy(Point3f[] bbUcPoints,
                                               float scale)

scaleBox

public static void scaleBox(Point3f[] pts,
                            float scale)

getFacesFromCriticalPoints

public static Point4f[] getFacesFromCriticalPoints(Point3f[] points)

getCriticalPoints

public static final Point3f[] getCriticalPoints(Point3f[] bbVertices,
                                                Point3f offset)

getBoundBoxCenter

public Point3f getBoundBoxCenter()

getBoundBoxCornerVector

public Vector3f getBoundBoxCornerVector()

getBoundBoxPoints

public Point3f[] getBoundBoxPoints()

getBboxVertices

public Point3fi[] getBboxVertices()

getBoundBoxInfo

Hashtable getBoundBoxInfo()

setBoundBox

void setBoundBox(Point3f pt1,
                 Point3f pt2,
                 boolean byCorner,
                 float scale)

reset

void reset()

addBoundBoxPoint

void addBoundBoxPoint(Point3f pt)

setBbcage

void setBbcage(float scale)

isWithin

boolean isWithin(Point3f pt)