org.jmol.shapespecial
Class Polyhedra
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.AtomShape
org.jmol.shapespecial.Polyhedra
public class Polyhedra
- extends AtomShape
Method Summary |
private void |
andBitSet(BitSet bs)
|
private void |
buildPolyhedra()
|
private Polyhedra.Polyhedron |
constructBitSetPolyhedron(int atomIndex)
|
private Polyhedra.Polyhedron |
constructBondsPolyhedron(int atomIndex)
|
private Polyhedra.Polyhedron |
constructRadiusPolyhedron(int atomIndex,
AtomIndexIterator iter)
|
private void |
deletePolyhedra()
|
private String |
faceId(int i,
int j,
int k)
|
String |
getShapeState()
|
private boolean |
isAligned(Point3f pt1,
Point3f pt2,
Point3f pt3)
|
private boolean |
isPlanar(Point3f pt1,
Point3f pt2,
Point3f pt3,
Point3f ptX)
|
void |
setProperty(String propertyName,
Object value,
BitSet bs)
may come from any source -- executed AFTER a shape's own setProperty method |
void |
setVisibilityFlags(BitSet bs)
|
private void |
setVisible(boolean visible)
|
private Polyhedra.Polyhedron |
validatePolyhedronNew(Atom centralAtom,
int vertexCount,
Point3f[] otherAtoms)
|
Methods inherited from class org.jmol.shape.Shape |
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, coordinateInRange, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getIndexFromName, getProperty, getProperty, getShapeCommands, getShapeCommands, getShapeDetail, getSize, getViewer, initializeShape, initShape, merge, setColix, setColix, setColix, setModelSet, setShapeProperty, setShapeSize, setStateInfo, setStateInfo, wasClicked |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DISTANCE_FACTOR
private static final float DEFAULT_DISTANCE_FACTOR
- See Also:
- Constant Field Values
DEFAULT_FACECENTEROFFSET
private static final float DEFAULT_FACECENTEROFFSET
- See Also:
- Constant Field Values
EDGES_NONE
private static final int EDGES_NONE
- See Also:
- Constant Field Values
EDGES_ALL
static final int EDGES_ALL
- See Also:
- Constant Field Values
EDGES_FRONT
static final int EDGES_FRONT
- See Also:
- Constant Field Values
MAX_VERTICES
private static final int MAX_VERTICES
- See Also:
- Constant Field Values
FACE_COUNT_MAX
private static final int FACE_COUNT_MAX
- See Also:
- Constant Field Values
otherAtoms
private Point3f[] otherAtoms
polyhedronCount
int polyhedronCount
polyhedrons
Polyhedra.Polyhedron[] polyhedrons
drawEdges
int drawEdges
radius
private float radius
nVertices
private int nVertices
faceCenterOffset
float faceCenterOffset
distanceFactor
float distanceFactor
isCollapsed
boolean isCollapsed
iHaveCenterBitSet
private boolean iHaveCenterBitSet
bondedOnly
private boolean bondedOnly
haveBitSetVertices
private boolean haveBitSetVertices
centers
private BitSet centers
bsVertices
private BitSet bsVertices
bsVertexCount
private BitSet bsVertexCount
normixesT
private short[] normixesT
planesT
private byte[] planesT
randomPoint
private static final Point3f randomPoint
align1
private Vector3f align1
align2
private Vector3f align2
vAB
private final Vector3f vAB
vAC
private final Vector3f vAC
minDistanceForPlanarity
private static float minDistanceForPlanarity
Polyhedra
public Polyhedra()
setProperty
public void setProperty(String propertyName,
Object value,
BitSet bs)
- Description copied from class:
Shape
- may come from any source -- executed AFTER a shape's own setProperty method
- Overrides:
setProperty
in class AtomShape
andBitSet
private void andBitSet(BitSet bs)
deletePolyhedra
private void deletePolyhedra()
setVisible
private void setVisible(boolean visible)
buildPolyhedra
private void buildPolyhedra()
constructBondsPolyhedron
private Polyhedra.Polyhedron constructBondsPolyhedron(int atomIndex)
constructBitSetPolyhedron
private Polyhedra.Polyhedron constructBitSetPolyhedron(int atomIndex)
constructRadiusPolyhedron
private Polyhedra.Polyhedron constructRadiusPolyhedron(int atomIndex,
AtomIndexIterator iter)
validatePolyhedronNew
private Polyhedra.Polyhedron validatePolyhedronNew(Atom centralAtom,
int vertexCount,
Point3f[] otherAtoms)
faceId
private String faceId(int i,
int j,
int k)
isAligned
private boolean isAligned(Point3f pt1,
Point3f pt2,
Point3f pt3)
isPlanar
private boolean isPlanar(Point3f pt1,
Point3f pt2,
Point3f pt3,
Point3f ptX)
setVisibilityFlags
public void setVisibilityFlags(BitSet bs)
- Overrides:
setVisibilityFlags
in class Shape
getShapeState
public String getShapeState()
- Overrides:
getShapeState
in class AtomShape