Package org.jmol.viewer
Class ShapeManager
java.lang.Object
org.jmol.viewer.ShapeManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
checkFrankclicked
(int x, int y) void
starting with Jmol 13.1.13, isosurfaces can use "property color" to inherit the color of the underlying atoms.checkObjectClicked
(int x, int y, int modifiers, javajs.util.BS bsVisible, boolean drawPicking) (package private) boolean
checkObjectDragged
(int prevX, int prevY, int x, int y, int modifiers, javajs.util.BS bsVisible, int iShape) (package private) boolean
checkObjectHovered
(int x, int y, javajs.util.BS bsVisible, boolean checkBonds) void
deleteShapeAtoms
(Object[] value, javajs.util.BS bs) (package private) void
deleteVdwDependentShapes
(javajs.util.BS bs) int[]
finalizeAtoms
(javajs.util.BS bsTranslateSelected, boolean finalizeParams) void
findNearestShapeAtomIndex
(int x, int y, Atom[] closest, javajs.util.BS bsNot) float
getAtomShapeValue
(int tok, Group group, int atomIndex) (package private) void
getObjectMap
(Map<String, ?> map, boolean withDollar) (package private) Object
getProperty
(Object paramInfo) getShape
(int i) int
getShapeIdFromObjectName
(String objectName) Returns the shape type index for a shape object given the object name.boolean
getShapePropertyData
(int shapeID, String propertyName, Object[] data) getShapePropertyIndex
(int shapeID, String propertyName, int index) void
loadDefaultShapes
(ModelSet newModelSet) loadShape
(int shapeID) void
notifyAtomPositionsChanged
(int baseModel, javajs.util.BS bs, javajs.util.M4 mat) void
releaseShape
(int shapeID) void
replaceGroup
(Group g0, Group g1) void
resetBioshapes
(javajs.util.BS bsAllAtoms) void
resetShapes
(boolean cacheScale) void
restrictSelected
(boolean isBond, boolean doInvert) void
setAtomLabel
(String strLabel, int i) void
void
setModelSet
(ModelSet modelSet) (package private) void
Sets shape visibility flags, including ATOM_VIS_INFRAME and ATOM_VIS_NOTHIDDEN.void
void
setScale()
void
setShapePropertyBs
(int shapeID, String propertyName, Object value, javajs.util.BS bsSelected) void
setShapeSizeBs
(int shapeID, int size, RadiusData rd, javajs.util.BS bsSelected) private void
-
Field Details
-
ms
-
shapes
-
vwr
-
scaleText
-
hoverable
private static final int[] hoverable -
clickableMax
private static int clickableMax -
bsRenderableAtoms
public final javajs.util.BS bsRenderableAtoms -
bsSlabbedInternal
public final javajs.util.BS bsSlabbedInternal
-
-
Constructor Details
-
ShapeManager
-
-
Method Details
-
setParallel
public void setParallel() -
findNearestShapeAtomIndex
-
getShapePropertyIndex
-
getShapePropertyData
-
getShapeIdFromObjectName
Returns the shape type index for a shape object given the object name.- Parameters:
objectName
- (string) string name of object- Returns:
- shapeType (int) integer corresponding to the shape type index see ShapeManager.shapes[].
-
loadDefaultShapes
-
loadShape
-
notifyAtomPositionsChanged
public void notifyAtomPositionsChanged(int baseModel, javajs.util.BS bs, javajs.util.M4 mat) -
releaseShape
public void releaseShape(int shapeID) -
setScale
public void setScale() -
resetShapes
public void resetShapes(boolean cacheScale) -
setShapeSizeBs
- Parameters:
shapeID
-size
- in milliangstromsrd
-bsSelected
-
-
setLabel
-
setShapePropertyBs
-
checkFrankclicked
boolean checkFrankclicked(int x, int y) -
checkObjectClicked
-
checkObjectDragged
boolean checkObjectDragged(int prevX, int prevY, int x, int y, int modifiers, javajs.util.BS bsVisible, int iShape) -
checkObjectHovered
boolean checkObjectHovered(int x, int y, javajs.util.BS bsVisible, boolean checkBonds) -
deleteShapeAtoms
-
deleteVdwDependentShapes
void deleteVdwDependentShapes(javajs.util.BS bs) -
getAtomShapeValue
-
replaceGroup
-
getObjectMap
-
getProperty
-
getShape
-
resetBioshapes
public void resetBioshapes(javajs.util.BS bsAllAtoms) -
setAtomLabel
-
setModelVisibility
void setModelVisibility()Sets shape visibility flags, including ATOM_VIS_INFRAME and ATOM_VIS_NOTHIDDEN. -
setShapeVis
private void setShapeVis() -
finalizeAtoms
public int[] finalizeAtoms(javajs.util.BS bsTranslateSelected, boolean finalizeParams) -
setModelSet
-
checkInheritedShapes
public void checkInheritedShapes()starting with Jmol 13.1.13, isosurfaces can use "property color" to inherit the color of the underlying atoms. This is then dynamic -
restrictSelected
public void restrictSelected(boolean isBond, boolean doInvert)
-