Package org.jmol.shapespecial
Class Draw
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.MeshCollection
org.jmol.shapespecial.Draw
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javajs.util.BSintintprivate floatprivate int(package private) DrawMesh[]private intprivate Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate floatprivate javajs.util.Lst<javajs.util.P3[]>private booleanprivate static final intprivate int[]private floatprivate booleanprivate intprivate javajs.util.V3private javajs.util.P4private javajs.util.Lst<Object>private static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate javajs.util.P3[]private final javajs.util.P3i(package private) MeshSurfaceprivate intprivate DrawMeshprivate Integerprivate final javajs.util.V3private javajs.util.Lst<Object[]>private floatFields inherited from class org.jmol.shape.MeshCollection
bsDisplay, colix, color, connections, currentMesh, displayWithinDistance2, displayWithinPoints, explicitID, htObjects, isDisplayWithinNot, isFixed, jvxlData, linkedMesh, meshCount, meshes, modelIndex, nUnnamed, pickedMesh, pickedModel, pickedPt, pickedVertex, PREVIOUS_MESH_ID, previousMeshID, titleFields inherited from class org.jmol.shape.Shape
bsColixSet, bsSizeSet, isBioShape, ms, myType, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, vf, vwr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPoint(javajs.util.T3 newPt, int iModel) private voidvoidcheckObjectClicked(int x, int y, int action, javajs.util.BS bsVisible, boolean drawPicking) booleancheckObjectDragged(int prevX, int prevY, int x, int y, int dragAction, javajs.util.BS bsVisible) booleancheckObjectHovered(int x, int y, javajs.util.BS bsVisible) protected voidclean()private voiddeleteMeshElement(int i) private voiddeleteModels(int modelIndex) private booleanfindPickedObject(int x, int y, boolean isPicking, javajs.util.BS bsVisible) private StringgetCommand(Mesh mesh) private StringgetCommand2(Mesh mesh, int iModel) getProperty(String property, int index) booleangetPropertyData(String property, Object[] data) private javajs.util.V3getSpinAxis(String axisID, int modelIndex) private javajs.util.T3getSpinCenter(String axisID, int vertexIndex, int modelIndex) private static StringgetVertexList(DrawMesh mesh, int iModel, int nVertices) private voidinitDraw()voidstatic booleanisPolygonDisplayable(Mesh mesh, int i) private voidstatic javajs.util.P3private voidprivate static final voidprivate booleansetDrawing(int[] connections) voidsetModelVisibilityFlags(javajs.util.BS bsModels) private booleansetPoints(int iModel, int n) private voidsetPolygon(int nPoly) voidsetProperty(String propertyName, Object value, javajs.util.BS bs) private voidsetPropertySuper(String propertyName, Object value, javajs.util.BS bs) Methods inherited from class org.jmol.shape.MeshCollection
checkExplicit, deleteMeshI, deleteMeshKey, getIndexFromName, getMesh, getMeshList, getPickedPoint, getPropDataMC, getPropMC, getValues, getVertices, merge, resetObjects, setPropMC, setStatusPicked, setTitle, setTokenPropertyMethods inherited from class org.jmol.shape.Shape
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
-
Field Details
-
PT_COORD
private static final int PT_COORD- See Also:
-
PT_IDENTIFIER
private static final int PT_IDENTIFIER- See Also:
-
PT_BITSET
private static final int PT_BITSET- See Also:
-
PT_MODEL_INDEX
private static final int PT_MODEL_INDEX- See Also:
-
PT_MODEL_BASED_POINTS
private static final int PT_MODEL_BASED_POINTS- See Also:
-
dmeshes
DrawMesh[] dmeshes -
thisMesh
-
ptList
private javajs.util.P3[] ptList -
offset
private javajs.util.V3 offset -
nPoints
private int nPoints -
diameter
private int diameter -
width
private float width -
newScale
private float newScale -
length
private float length -
isCurve
private boolean isCurve -
isArc
private boolean isArc -
isArrow
private boolean isArrow -
isLine
private boolean isLine -
isVector
private boolean isVector -
isCircle
private boolean isCircle -
isPerpendicular
private boolean isPerpendicular -
isCylinder
private boolean isCylinder -
isVertices
private boolean isVertices -
isPlane
private boolean isPlane -
isReversed
private boolean isReversed -
isRotated45
private boolean isRotated45 -
isCrossed
private boolean isCrossed -
isValid
private boolean isValid -
noHead
private boolean noHead -
isBarb
private boolean isBarb -
indicatedModelIndex
private int indicatedModelIndex -
modelInfo
private int[] modelInfo -
makePoints
private boolean makePoints -
plane
private javajs.util.P4 plane -
bsAllModels
private javajs.util.BS bsAllModels -
polygon
-
vData
-
intersectID
-
lineData
private javajs.util.Lst<javajs.util.P3[]> lineData -
defaultFontId0
public int defaultFontId0 -
defaultFontId
public int defaultFontId -
thisFontID
private int thisFontID -
titleColor
-
slabData
MeshSurface slabData -
vAB
private final javajs.util.V3 vAB -
MAX_OBJECT_CLICK_DISTANCE_SQUARED
private static final int MAX_OBJECT_CLICK_DISTANCE_SQUARED- See Also:
-
ptXY
private final javajs.util.P3i ptXY -
defaultFontSize
private float defaultFontSize
-
-
Constructor Details
-
Draw
public Draw()
-
-
Method Details
-
allocMesh
- Overrides:
allocMeshin classMeshCollection
-
setPropertySuper
-
initShape
public void initShape()- Overrides:
initShapein classMeshCollection
-
setProperty
- Specified by:
setPropertyin classShape
-
deleteModels
private void deleteModels(int modelIndex) -
deleteMeshElement
private void deleteMeshElement(int i) -
initDraw
private void initDraw() -
getPropertyData
- Overrides:
getPropertyDatain classShape- Returns:
- true if serviced
-
getProperty
- Overrides:
getPropertyin classShape- Returns:
- true if serviced
-
getSpinCenter
-
getSpinAxis
-
setDrawing
private boolean setDrawing(int[] connections) -
clean
protected void clean()- Overrides:
cleanin classMeshCollection
-
addPoints
-
addPoint
private void addPoint(javajs.util.T3 newPt, int iModel) -
setPoints
private boolean setPoints(int iModel, int n) -
setPolygon
private void setPolygon(int nPoly) -
scale
-
setAxes
-
setModelVisibilityFlags
public void setModelVisibilityFlags(javajs.util.BS bsModels) - Overrides:
setModelVisibilityFlagsin classMeshCollection
-
checkObjectClicked
public Map<String,Object> checkObjectClicked(int x, int y, int action, javajs.util.BS bsVisible, boolean drawPicking) - Overrides:
checkObjectClickedin classShapedrawPicking- TODO- Returns:
- Hashtable containing information about pt clicked
-
checkObjectHovered
public boolean checkObjectHovered(int x, int y, javajs.util.BS bsVisible) - Overrides:
checkObjectHoveredin classShape- Returns:
- T/F
-
checkObjectDragged
public boolean checkObjectDragged(int prevX, int prevY, int x, int y, int dragAction, javajs.util.BS bsVisible) - Overrides:
checkObjectDraggedin classShape- Returns:
- T/F
-
move2D
-
findPickedObject
private boolean findPickedObject(int x, int y, boolean isPicking, javajs.util.BS bsVisible) - Parameters:
x-y-isPicking- IGNOREDbsVisible-- Returns:
- true if found
-
getCommand
-
getCommand2
-
isPolygonDisplayable
-
getVertexList
-
getShapeDetail
- Overrides:
getShapeDetailin classShape
-
getShapeState
- Specified by:
getShapeStatein classShape
-
randomPoint
public static javajs.util.P3 randomPoint()
-