public class Draw extends MeshCollection
Modifier and Type | Class and Description |
---|---|
static class |
Draw.EnumDrawType |
Modifier and Type | Field and Description |
---|---|
private P3[] |
boundBox |
private BS |
bsAllModels |
private int |
diameter |
(package private) DrawMesh[] |
dmeshes |
private int |
indicatedModelIndex |
private java.lang.String |
intersectID |
private boolean |
isArc |
private boolean |
isArrow |
private boolean |
isBarb |
private boolean |
isCircle |
private boolean |
isCrossed |
private boolean |
isCurve |
private boolean |
isCylinder |
private boolean |
isLine |
private boolean |
isPerpendicular |
private boolean |
isPlane |
private boolean |
isReversed |
private boolean |
isRotated45 |
private boolean |
isValid |
private boolean |
isVector |
private boolean |
isVertices |
private float |
length |
private JmolList<P3[]> |
lineData |
private boolean |
makePoints |
private static int |
MAX_OBJECT_CLICK_DISTANCE_SQUARED |
private int[] |
modelInfo |
private int |
nbitsets |
protected float |
newScale |
private int |
nidentifiers |
private boolean |
noHead |
private int |
nPoints |
private V3 |
offset |
private P4 |
plane |
private JmolList<java.lang.Object> |
polygon |
private static int |
PT_BITSET |
private static int |
PT_COORD |
private static int |
PT_IDENTIFIER |
private static int |
PT_MODEL_BASED_POINTS |
private static int |
PT_MODEL_INDEX |
private P3[] |
ptList |
private P3i |
ptXY |
(package private) MeshSurface |
slabData |
protected DrawMesh |
thisMesh |
private V3 |
vAB |
private V3 |
vAC |
private JmolList<java.lang.Object[]> |
vData |
private float |
width |
bsDisplay, colix, color, connections, currentMesh, displayWithinDistance2, displayWithinPoints, explicitID, htObjects, isDisplayWithinNot, isFixed, linkedMesh, meshCount, meshes, modelIndex, myType, nUnnamed, pickedMesh, pickedModel, pickedPt, pickedVertex, PREVIOUS_MESH_ID, previousMeshID, title
bsColixSet, bsSizeSet, gdata, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer
Constructor and Description |
---|
Draw() |
Modifier and Type | Method and Description |
---|---|
private void |
addPoint(P3 newPt,
int iModel) |
void |
allocMesh(java.lang.String thisID,
Mesh m) |
java.util.Map<java.lang.String,java.lang.Object> |
checkObjectClicked(int x,
int y,
int action,
BS bsVisible,
boolean drawPicking) |
boolean |
checkObjectDragged(int prevX,
int prevY,
int x,
int y,
int action,
BS bsVisible) |
boolean |
checkObjectHovered(int x,
int y,
BS bsVisible) |
protected void |
clean() |
protected void |
deleteMeshElement(int i) |
protected void |
deleteModels(int modelIndex) |
private boolean |
findPickedObject(int x,
int y,
boolean isPicking,
BS bsVisible) |
protected java.lang.String |
getCommand(Mesh mesh) |
protected java.lang.String |
getCommand2(Mesh mesh,
int iModel) |
java.lang.Object |
getProperty(java.lang.String property,
int index) |
boolean |
getPropertyData(java.lang.String property,
java.lang.Object[] data) |
JmolList<java.util.Map<java.lang.String,java.lang.Object>> |
getShapeDetail() |
java.lang.String |
getShapeState() |
private V3 |
getSpinAxis(java.lang.String axisID,
int modelIndex) |
private P3 |
getSpinCenter(java.lang.String axisID,
int vertexIndex,
int modelIndex) |
private static java.lang.String |
getVertexList(DrawMesh mesh,
int iModel,
int nVertices) |
private void |
initDraw() |
void |
initShape() |
static boolean |
isPolygonDisplayable(Mesh mesh,
int i) |
private void |
move2D(DrawMesh mesh,
int[] vertexes,
int iVertex,
int x,
int y,
boolean moveAll) |
static P3 |
randomPoint() |
protected void |
resetObjects() |
protected void |
scale(Mesh mesh,
float newScale) |
private static void |
setAxes(DrawMesh m) |
private boolean |
setDrawing(int[] connections) |
private void |
setIntersectData() |
private boolean |
setPoints(int iModel,
int n) |
private void |
setPolygon(int nPoly) |
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
|
protected void |
setPropertySuper(java.lang.String propertyName,
java.lang.Object value,
BS bs) |
private void |
setSlabData() |
void |
setVisibilityFlags(BS bs) |
checkExplicit, deleteMeshI, deleteMeshKey, getIndexFromName, getMesh, getPickedPoint, getPropDataMC, getPropMC, merge, setPropMC, setStatusPicked
appendCmd, checkBoundsMinMax, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getSize, getSizeG, getTranslucentLabel, getViewer, initializeShape, initModelSet, setModelClickability, setModelSet, setPropS, setShapeSizeRD, setSize, setSizeRD, wasClicked
DrawMesh[] dmeshes
protected DrawMesh thisMesh
private P3[] ptList
private V3 offset
private int nPoints
private int diameter
private float width
protected float newScale
private float length
private boolean isCurve
private boolean isArc
private boolean isArrow
private boolean isLine
private boolean isVector
private boolean isCircle
private boolean isPerpendicular
private boolean isCylinder
private boolean isVertices
private boolean isPlane
private boolean isReversed
private boolean isRotated45
private boolean isCrossed
private boolean isValid
private boolean noHead
private boolean isBarb
private int indicatedModelIndex
private int[] modelInfo
private boolean makePoints
private int nidentifiers
private int nbitsets
private P4 plane
private BS bsAllModels
private JmolList<java.lang.Object> polygon
private JmolList<java.lang.Object[]> vData
private java.lang.String intersectID
private P3[] boundBox
private static final int PT_COORD
private static final int PT_IDENTIFIER
private static final int PT_BITSET
private static final int PT_MODEL_INDEX
private static final int PT_MODEL_BASED_POINTS
MeshSurface slabData
private final V3 vAB
private final V3 vAC
private static final int MAX_OBJECT_CLICK_DISTANCE_SQUARED
private final P3i ptXY
public void allocMesh(java.lang.String thisID, Mesh m)
allocMesh
in class MeshCollection
protected void setPropertySuper(java.lang.String propertyName, java.lang.Object value, BS bs)
public void initShape()
initShape
in class MeshCollection
public void setProperty(java.lang.String propertyName, java.lang.Object value, BS bs)
Shape
setProperty
in class Shape
protected void deleteModels(int modelIndex)
protected void deleteMeshElement(int i)
private void initDraw()
protected void resetObjects()
public boolean getPropertyData(java.lang.String property, java.lang.Object[] data)
getPropertyData
in class Shape
public java.lang.Object getProperty(java.lang.String property, int index)
getProperty
in class Shape
private P3 getSpinCenter(java.lang.String axisID, int vertexIndex, int modelIndex)
private V3 getSpinAxis(java.lang.String axisID, int modelIndex)
private boolean setDrawing(int[] connections)
protected void clean()
clean
in class MeshCollection
private void setIntersectData()
private void setSlabData()
private void addPoint(P3 newPt, int iModel)
private boolean setPoints(int iModel, int n)
private void setPolygon(int nPoly)
protected void scale(Mesh mesh, float newScale)
private static final void setAxes(DrawMesh m)
public void setVisibilityFlags(BS bs)
setVisibilityFlags
in class MeshCollection
public java.util.Map<java.lang.String,java.lang.Object> checkObjectClicked(int x, int y, int action, BS bsVisible, boolean drawPicking)
checkObjectClicked
in class Shape
drawPicking
- TODOpublic boolean checkObjectHovered(int x, int y, BS bsVisible)
checkObjectHovered
in class Shape
public boolean checkObjectDragged(int prevX, int prevY, int x, int y, int action, BS bsVisible)
checkObjectDragged
in class Shape
private void move2D(DrawMesh mesh, int[] vertexes, int iVertex, int x, int y, boolean moveAll)
private boolean findPickedObject(int x, int y, boolean isPicking, BS bsVisible)
x
- y
- isPicking
- IGNOREDbsVisible
- protected java.lang.String getCommand(Mesh mesh)
protected java.lang.String getCommand2(Mesh mesh, int iModel)
public static boolean isPolygonDisplayable(Mesh mesh, int i)
private static java.lang.String getVertexList(DrawMesh mesh, int iModel, int nVertices)
public JmolList<java.util.Map<java.lang.String,java.lang.Object>> getShapeDetail()
getShapeDetail
in class Shape
public java.lang.String getShapeState()
getShapeState
in class Shape
public static P3 randomPoint()