public class Polyhedra extends AtomShape
Modifier and Type | Class and Description |
---|---|
class |
Polyhedra.Polyhedron |
Modifier and Type | Field and Description |
---|---|
private V3 |
align1 |
private V3 |
align2 |
private boolean |
bondedOnly |
private BS |
bsTemp |
private BS |
bsVertexCount |
private BS |
bsVertices |
private BS |
centers |
private static float |
DEFAULT_DISTANCE_FACTOR |
private static float |
DEFAULT_FACECENTEROFFSET |
(package private) float |
distanceFactor |
int |
drawEdges |
static int |
EDGES_ALL |
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 P3[] |
otherAtoms |
private byte[] |
planesT |
int |
polyhedronCount |
Polyhedra.Polyhedron[] |
polyhedrons |
private float |
radius |
private static P3 |
randomPoint |
private V3 |
vAB |
private V3 |
vAC |
atomCount, atoms, bsSizeDefault, colixes, isActive, mad, mads, monomerCount, paletteIDs
bsColixSet, bsSizeSet, gdata, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer
Constructor and Description |
---|
Polyhedra() |
Modifier and Type | Method and Description |
---|---|
private BS |
andBitSet(BS 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(P3 pt1,
P3 pt2,
P3 pt3) |
private boolean |
isPlanar(P3 pt1,
P3 pt2,
P3 pt3,
P3 ptX) |
private void |
setLighting(boolean isFullyLit,
BS bs) |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value,
BS bs)
may come from any source -- executed AFTER a shape's own setProperty method
|
void |
setVisibilityFlags(BS bs) |
private void |
setVisible(boolean visible) |
private Polyhedra.Polyhedron |
validatePolyhedronNew(Atom centralAtom,
int vertexCount,
P3[] otherAtoms) |
getInfoAsString, getMonomers, getSize, initModelSet, setColixAndPalette, setModelClickability, setPropAS, setSize, setSize2, setSizeRD, setSizeRD2
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getIndexFromName, getProperty, getPropertyData, getShapeDetail, getSizeG, getTranslucentLabel, getViewer, initializeShape, initShape, merge, setModelSet, setPropS, setShapeSizeRD, wasClicked
private static final float DEFAULT_DISTANCE_FACTOR
private static final float DEFAULT_FACECENTEROFFSET
private static final int EDGES_NONE
public static final int EDGES_ALL
public static final int EDGES_FRONT
private static final int MAX_VERTICES
private static final int FACE_COUNT_MAX
private P3[] otherAtoms
public int polyhedronCount
public Polyhedra.Polyhedron[] polyhedrons
public int drawEdges
private float radius
private int nVertices
float faceCenterOffset
float distanceFactor
boolean isCollapsed
private boolean iHaveCenterBitSet
private boolean bondedOnly
private boolean haveBitSetVertices
private BS centers
private BS bsVertices
private BS bsVertexCount
private short[] normixesT
private byte[] planesT
private static final P3 randomPoint
private BS bsTemp
private V3 align1
private V3 align2
private final V3 vAB
private final V3 vAC
private static float minDistanceForPlanarity
public void setProperty(java.lang.String propertyName, java.lang.Object value, BS bs)
Shape
setProperty
in class Shape
private void setLighting(boolean isFullyLit, BS 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, P3[] otherAtoms)
private java.lang.String faceId(int i, int j, int k)
public void setVisibilityFlags(BS bs)
setVisibilityFlags
in class Shape
public java.lang.String getShapeState()
getShapeState
in class AtomShape