public class Polyhedra extends AtomShape
Modifier and Type | Class and Description |
---|---|
(package private) class |
Polyhedra.Polyhedron |
Modifier and Type | Field and Description |
---|---|
private javax.vecmath.Vector3f |
align1 |
private javax.vecmath.Vector3f |
align2 |
private boolean |
bondedOnly |
private java.util.BitSet |
bsVertexCount |
private java.util.BitSet |
bsVertices |
private java.util.BitSet |
centers |
private static float |
DEFAULT_DISTANCE_FACTOR |
private static float |
DEFAULT_FACECENTEROFFSET |
(package private) float |
distanceFactor |
(package private) int |
drawEdges |
(package private) static int |
EDGES_ALL |
(package private) static int |
EDGES_FRONT |
private static int |
EDGES_NONE |
private static int |
FACE_COUNT_MAX |
(package private) float |
faceCenterOffset |
private boolean |
haveBitSetVertices |
private boolean |
iHaveCenterBitSet |
(package private) boolean |
isCollapsed |
private static int |
MAX_VERTICES |
private static float |
minDistanceForPlanarity |
private short[] |
normixesT |
private int |
nVertices |
private javax.vecmath.Point3f[] |
otherAtoms |
private byte[] |
planesT |
(package private) int |
polyhedronCount |
(package private) Polyhedra.Polyhedron[] |
polyhedrons |
private float |
radius |
private static javax.vecmath.Point3f |
randomPoint |
private javax.vecmath.Vector3f |
vAB |
private javax.vecmath.Vector3f |
vAC |
atomCount, atoms, bsColixSet, bsSizeSet, colixes, isActive, mads, paletteIDs
g3d, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer, xmlProperties
Constructor and Description |
---|
Polyhedra() |
Modifier and Type | Method and Description |
---|---|
private java.util.BitSet |
andBitSet(java.util.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 java.lang.String |
faceId(int i,
int j,
int k) |
java.lang.String |
getShapeState() |
private boolean |
isAligned(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
javax.vecmath.Point3f pt3) |
private boolean |
isPlanar(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
javax.vecmath.Point3f pt3,
javax.vecmath.Point3f ptX) |
private void |
setLighting(boolean isFullyLit,
java.util.BitSet bs) |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value,
java.util.BitSet bs)
may come from any source -- executed AFTER a shape's own setProperty method
|
void |
setVisibilityFlags(java.util.BitSet bs) |
private void |
setVisible(boolean visible) |
private Polyhedra.Polyhedron |
validatePolyhedronNew(Atom centralAtom,
int vertexCount,
javax.vecmath.Point3f[] otherAtoms) |
getSize, initModelSet, setColixAndPalette, setModelClickability, setSize, setSize
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getIndexFromName, getProperty, getProperty, getShapeCommands, getShapeCommands, getShapeDetail, getSize, getTranslucentLabel, getViewer, initializeShape, initShape, merge, setColix, setColix, setColix, setModelSet, setShapeProperty, setShapeSize, setStateInfo, setStateInfo, wasClicked
private static final float DEFAULT_DISTANCE_FACTOR
private static final float DEFAULT_FACECENTEROFFSET
private static final int EDGES_NONE
static final int EDGES_ALL
static final int EDGES_FRONT
private static final int MAX_VERTICES
private static final int FACE_COUNT_MAX
private javax.vecmath.Point3f[] otherAtoms
int polyhedronCount
Polyhedra.Polyhedron[] polyhedrons
int drawEdges
private float radius
private int nVertices
float faceCenterOffset
float distanceFactor
boolean isCollapsed
private boolean iHaveCenterBitSet
private boolean bondedOnly
private boolean haveBitSetVertices
private java.util.BitSet centers
private java.util.BitSet bsVertices
private java.util.BitSet bsVertexCount
private short[] normixesT
private byte[] planesT
private static final javax.vecmath.Point3f randomPoint
private javax.vecmath.Vector3f align1
private javax.vecmath.Vector3f align2
private final javax.vecmath.Vector3f vAB
private final javax.vecmath.Vector3f vAC
private static float minDistanceForPlanarity
public void setProperty(java.lang.String propertyName, java.lang.Object value, java.util.BitSet bs)
Shape
setProperty
in class AtomShape
private void setLighting(boolean isFullyLit, java.util.BitSet bs)
private java.util.BitSet andBitSet(java.util.BitSet bs)
private void deletePolyhedra()
private void setVisible(boolean visible)
private void buildPolyhedra()
private Polyhedra.Polyhedron constructBondsPolyhedron(int atomIndex)
private Polyhedra.Polyhedron constructBitSetPolyhedron(int atomIndex)
private Polyhedra.Polyhedron constructRadiusPolyhedron(int atomIndex, AtomIndexIterator iter)
private Polyhedra.Polyhedron validatePolyhedronNew(Atom centralAtom, int vertexCount, javax.vecmath.Point3f[] otherAtoms)
private java.lang.String faceId(int i, int j, int k)
private boolean isAligned(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, javax.vecmath.Point3f pt3)
private boolean isPlanar(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, javax.vecmath.Point3f pt3, javax.vecmath.Point3f ptX)
public void setVisibilityFlags(java.util.BitSet bs)
setVisibilityFlags
in class Shape
public java.lang.String getShapeState()
getShapeState
in class AtomShape