public class Draw extends MeshCollection
Modifier and Type | Class and Description |
---|---|
static class |
Draw.EnumDrawType |
Modifier and Type | Field and Description |
---|---|
private javajs.util.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 javajs.util.Lst<javajs.util.P3[]> |
lineData |
private boolean |
makePoints |
private static int |
MAX_OBJECT_CLICK_DISTANCE_SQUARED |
private int[] |
modelInfo |
protected float |
newScale |
private boolean |
noHead |
private int |
nPoints |
private javajs.util.V3 |
offset |
private javajs.util.P4 |
plane |
private javajs.util.Lst<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 javajs.util.P3[] |
ptList |
private javajs.util.P3i |
ptXY |
(package private) MeshSurface |
slabData |
protected DrawMesh |
thisMesh |
private javajs.util.V3 |
vAB |
private javajs.util.Lst<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, isBioShape, ms, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, vf, vwr
Constructor and Description |
---|
Draw() |
Modifier and Type | Method and Description |
---|---|
private void |
addPoint(javajs.util.T3 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 dragAction,
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) |
javajs.util.Lst<java.util.Map<java.lang.String,java.lang.Object>> |
getShapeDetail() |
java.lang.String |
getShapeState() |
private javajs.util.V3 |
getSpinAxis(java.lang.String axisID,
int modelIndex) |
private javajs.util.T3 |
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 javajs.util.P3 |
randomPoint() |
protected void |
resetObjects() |
protected void |
scale(Mesh mesh,
float newScale) |
private static void |
setAxes(DrawMesh m) |
private boolean |
setDrawing(int[] connections) |
void |
setModelVisibilityFlags(BS bsModels) |
private boolean |
setPoints(int iModel,
int n) |
private void |
setPolygon(int nPoly) |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value,
BS bs) |
protected void |
setPropertySuper(java.lang.String propertyName,
java.lang.Object value,
BS bs) |
checkExplicit, deleteMeshI, deleteMeshKey, getIndexFromName, getMesh, getMeshList, getPickedPoint, getPropDataMC, getPropMC, merge, setPropMC, setStatusPicked, setTokenProperty
appendCmd, checkBoundsMinMax, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getSize, getSizeG, getTranslucentLabel, initializeShape, initModelSet, setAtomClickability, setModelSet, setPropS, setShapeSizeRD, setShapeVisibility, setSize, setSizeRD, wasClicked
DrawMesh[] dmeshes
protected DrawMesh thisMesh
private javajs.util.P3[] ptList
private javajs.util.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 javajs.util.P4 plane
private BS bsAllModels
private javajs.util.Lst<java.lang.Object> polygon
private javajs.util.Lst<java.lang.Object[]> vData
private java.lang.String intersectID
private javajs.util.P3[] boundBox
private javajs.util.Lst<javajs.util.P3[]> lineData
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 javajs.util.V3 vAB
private static final int MAX_OBJECT_CLICK_DISTANCE_SQUARED
private final javajs.util.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)
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 javajs.util.T3 getSpinCenter(java.lang.String axisID, int vertexIndex, int modelIndex)
private javajs.util.V3 getSpinAxis(java.lang.String axisID, int modelIndex)
private boolean setDrawing(int[] connections)
protected void clean()
clean
in class MeshCollection
private void addPoint(javajs.util.T3 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 setModelVisibilityFlags(BS bsModels)
setModelVisibilityFlags
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 dragAction, 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 javajs.util.Lst<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 javajs.util.P3 randomPoint()