org.jmol.shapespecial
public class Draw extends MeshCollection
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Draw.EnumDrawType |
Modifier and Type | Field and Description |
---|---|
private Point3f[] |
boundBox |
private BitSet |
bsAllModels |
private int |
diameter |
(package private) DrawMesh[] |
dmeshes |
private int |
indicatedModelIndex |
private 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 List<Point3f[]> |
lineData |
private boolean |
makePoints |
private static int |
MAX_OBJECT_CLICK_DISTANCE_SQUARED |
private int[] |
modelInfo |
private int |
nbitsets |
private float |
newScale |
private int |
nidentifiers |
private boolean |
noHead |
private int |
nPoints |
private Vector3f |
offset |
private Point4f |
plane |
private List<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 Point3f[] |
ptList |
private Point3i |
ptXY |
(package private) MeshSurface |
slabData |
(package private) DrawMesh |
thisMesh |
private Vector3f |
vAB |
private Vector3f |
vAC |
private List<Object[]> |
vData |
private float |
width |
bsDisplay, colix, color, connections, currentMesh, displayWithinDistance2, displayWithinPoints, explicitID, htObjects, isDisplayWithinNot, isFixed, linkedMesh, meshCount, meshes, modelIndex, myType, nUnnamed, pickedMesh, pickedModel, pickedVertex, PREVIOUS_MESH_ID, previousMeshID, title
g3d, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer, xmlProperties
Constructor and Description |
---|
Draw() |
Modifier and Type | Method and Description |
---|---|
private void |
addPoint(Point3f newPt,
int iModel) |
void |
allocMesh(String thisID,
Mesh m) |
Map<String,Object> |
checkObjectClicked(int x,
int y,
int action,
BitSet bsVisible) |
boolean |
checkObjectDragged(int prevX,
int prevY,
int x,
int y,
int action,
BitSet bsVisible) |
boolean |
checkObjectHovered(int x,
int y,
BitSet bsVisible) |
protected void |
clean() |
private boolean |
findPickedObject(int x,
int y,
boolean isPicking,
BitSet bsVisible) |
private String |
getDrawCommand(DrawMesh mesh) |
private String |
getDrawCommand(DrawMesh mesh,
int iModel) |
Object |
getProperty(String property,
int index) |
boolean |
getProperty(String property,
Object[] data) |
List<Map<String,Object>> |
getShapeDetail() |
String |
getShapeState() |
private Vector3f |
getSpinAxis(String axisID,
int modelIndex) |
private Point3f |
getSpinCenter(String axisID,
int vertexIndex,
int modelIndex) |
private static String |
getVertexList(DrawMesh mesh,
int iModel,
int nVertices) |
void |
initShape() |
(package private) static boolean |
isPolygonDisplayable(Mesh mesh,
int i) |
private void |
move2D(DrawMesh mesh,
int[] vertexes,
int iVertex,
int x,
int y,
boolean moveAll) |
(package private) static Point3f |
randomPoint() |
private void |
resetObjects() |
private static void |
scaleDrawing(DrawMesh 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(String propertyName,
Object value,
BitSet bs)
may come from any source -- executed AFTER a shape's own setProperty method
|
(package private) void |
setPropertySuper(String propertyName,
Object value,
BitSet bs) |
private void |
setSlabData() |
void |
setVisibilityFlags(BitSet bs) |
checkExplicit, deleteMesh, deleteMesh, getIndexFromName, getMesh, getPickedPoint, merge, setStatusPicked
appendCmd, checkBoundsMinMax, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getShapeCommands, getShapeCommands, getSize, getSize, getTranslucentLabel, getViewer, initializeShape, initModelSet, setColix, setColix, setColix, setModelClickability, setModelSet, setShapeProperty, setShapeSize, setSize, setSize, setStateInfo, setStateInfo, wasClicked
DrawMesh[] dmeshes
DrawMesh thisMesh
private Point3f[] ptList
private Vector3f offset
private int nPoints
private int diameter
private float width
private 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 Point4f plane
private BitSet bsAllModels
private String intersectID
private Point3f[] 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 Vector3f vAB
private final Vector3f vAC
private static final int MAX_OBJECT_CLICK_DISTANCE_SQUARED
private final Point3i ptXY
public void allocMesh(String thisID, Mesh m)
allocMesh
in class MeshCollection
public void initShape()
initShape
in class MeshCollection
public void setProperty(String propertyName, Object value, BitSet bs)
Shape
setProperty
in class MeshCollection
private void resetObjects()
public boolean getProperty(String property, Object[] data)
getProperty
in class MeshCollection
public Object getProperty(String property, int index)
getProperty
in class MeshCollection
private boolean setDrawing(int[] connections)
protected void clean()
clean
in class MeshCollection
private void setIntersectData()
private void setSlabData()
private void addPoint(Point3f newPt, int iModel)
private boolean setPoints(int iModel, int n)
private void setPolygon(int nPoly)
private static void scaleDrawing(DrawMesh mesh, float newScale)
private static final void setAxes(DrawMesh m)
public void setVisibilityFlags(BitSet bs)
setVisibilityFlags
in class MeshCollection
public Map<String,Object> checkObjectClicked(int x, int y, int action, BitSet bsVisible)
checkObjectClicked
in class Shape
public boolean checkObjectHovered(int x, int y, BitSet bsVisible)
checkObjectHovered
in class Shape
public boolean checkObjectDragged(int prevX, int prevY, int x, int y, int action, BitSet 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, BitSet bsVisible)
x
- y
- isPicking
- IGNOREDbsVisible
- static boolean isPolygonDisplayable(Mesh mesh, int i)
public List<Map<String,Object>> getShapeDetail()
getShapeDetail
in class Shape
public String getShapeState()
getShapeState
in class Shape
static Point3f randomPoint()