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 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 |
private float |
newScale |
private boolean |
noHead |
private int |
nPoints |
private javajs.util.V3 |
offset |
private javajs.util.P4 |
plane |
private javajs.util.Lst<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 |
private DrawMesh |
thisMesh |
private javajs.util.V3 |
vAB |
private javajs.util.Lst<Object[]> |
vData |
private float |
width |
bsDisplay, colix, color, connections, currentMesh, displayWithinDistance2, displayWithinPoints, explicitID, htObjects, isDisplayWithinNot, isFixed, linkedMesh, meshCount, meshes, modelIndex, nUnnamed, pickedMesh, pickedModel, pickedPt, pickedVertex, PREVIOUS_MESH_ID, previousMeshID, title
bsColixSet, bsSizeSet, isBioShape, ms, myType, 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) |
private void |
addPoints(int type,
Object value) |
void |
allocMesh(String thisID,
Mesh m) |
Map<String,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() |
private void |
deleteMeshElement(int i) |
private void |
deleteModels(int modelIndex) |
private boolean |
findPickedObject(int x,
int y,
boolean isPicking,
BS bsVisible) |
private String |
getCommand(Mesh mesh) |
private String |
getCommand2(Mesh mesh,
int iModel) |
Object |
getProperty(String property,
int index) |
boolean |
getPropertyData(String property,
Object[] data) |
Object |
getShapeDetail() |
String |
getShapeState() |
private javajs.util.V3 |
getSpinAxis(String axisID,
int modelIndex) |
private javajs.util.T3 |
getSpinCenter(String axisID,
int vertexIndex,
int modelIndex) |
private static 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() |
private 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(String propertyName,
Object value,
BS bs) |
private void |
setPropertySuper(String propertyName,
Object value,
BS bs) |
checkExplicit, deleteMeshI, deleteMeshKey, getIndexFromName, getMesh, getMeshList, getPickedPoint, getPropDataMC, getPropMC, merge, resetObjects, setPropMC, setStatusPicked, setTokenProperty
appendCmd, checkBoundsMinMax, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getPropShape, getSize, getSizeG, getTranslucentLabel, initializeShape, initModelSet, replaceGroup, setAtomClickability, setModelSet, setPropS, setShapeSizeRD, setSize, setSizeRD, wasClicked
DrawMesh[] dmeshes
private DrawMesh thisMesh
private javajs.util.P3[] ptList
private javajs.util.V3 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 javajs.util.P4 plane
private BS bsAllModels
private javajs.util.Lst<Object> polygon
private javajs.util.Lst<Object[]> vData
private 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(String thisID, Mesh m)
allocMesh
in class MeshCollection
public void initShape()
initShape
in class MeshCollection
public void setProperty(String propertyName, Object value, BS bs)
setProperty
in class Shape
private void addPoints(int type, Object value)
private void deleteModels(int modelIndex)
private void deleteMeshElement(int i)
private void initDraw()
public boolean getPropertyData(String property, Object[] data)
getPropertyData
in class Shape
public Object getProperty(String property, int index)
getProperty
in class Shape
private javajs.util.T3 getSpinCenter(String axisID, int vertexIndex, int modelIndex)
private javajs.util.V3 getSpinAxis(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)
private void scale(Mesh mesh, float newScale)
private static final void setAxes(DrawMesh m)
public void setModelVisibilityFlags(BS bsModels)
setModelVisibilityFlags
in class MeshCollection
public Map<String,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
- public static boolean isPolygonDisplayable(Mesh mesh, int i)
public Object getShapeDetail()
getShapeDetail
in class Shape
public String getShapeState()
getShapeState
in class Shape
public static javajs.util.P3 randomPoint()