org.jmol.viewer
public class ShapeManager extends Object
Modifier and Type | Field and Description |
---|---|
private BitSet |
bsRenderable |
private static int |
clickableMax |
private Graphics3D |
g3d |
private static int[] |
hoverable |
private int[] |
minMax |
private ModelSet |
modelSet |
private Shape[] |
shapes |
private Viewer |
viewer |
Constructor and Description |
---|
ShapeManager(Viewer viewer) |
ShapeManager(Viewer viewer,
ModelSet modelSet) |
Modifier and Type | Method and Description |
---|---|
private Shape |
allocateShape(int shapeID) |
(package private) Map<String,Object> |
checkObjectClicked(int x,
int y,
int modifiers,
BitSet bsVisible) |
(package private) boolean |
checkObjectDragged(int prevX,
int prevY,
int x,
int y,
int modifiers,
BitSet bsVisible,
int iShape) |
(package private) boolean |
checkObjectHovered(int x,
int y,
BitSet bsVisible,
boolean checkBonds) |
void |
deleteShapeAtoms(Object[] value,
BitSet bs) |
void |
deleteVdwDependentShapes(BitSet bs) |
void |
findNearestShapeAtomIndex(int x,
int y,
Atom[] closest,
BitSet bsNot) |
boolean |
frankClicked(int x,
int y) |
(package private) float |
getAtomShapeValue(int tok,
Group group,
int atomIndex) |
int[] |
getCrossHairMinMax() |
void |
getObjectMap(Map<String,Token> map,
boolean withDollar) |
Object |
getProperty(Object paramInfo) |
(package private) BitSet |
getRenderableBitSet() |
Shape |
getShape(int i) |
int |
getShapeIdFromObjectName(String objectName)
Returns the shape type index for a shape object given the object name.
|
Map<String,Object> |
getShapeInfo() |
Object |
getShapeProperty(int shapeID,
String propertyName,
int index) |
boolean |
getShapeProperty(int shapeID,
String propertyName,
Object[] data) |
Shape[] |
getShapes() |
void |
getShapeState(StringBuffer commands,
boolean isAll) |
void |
loadDefaultShapes(ModelSet modelSet) |
Shape |
loadShape(int shapeID) |
void |
mergeShapes(Shape[] newShapes) |
void |
refreshShapeTrajectories(int baseModel,
BitSet bs,
Matrix4f mat) |
void |
releaseShape(int shapeID) |
void |
resetBioshapes(BitSet bsAllAtoms) |
void |
resetShapes() |
void |
setAtomLabel(String strLabel,
int i) |
void |
setLabel(String strLabel,
BitSet bsSelection) |
void |
setModelVisibility() |
private void |
setShapeModelSet(ModelSet newModelSet) |
void |
setShapeProperty(int shapeID,
String propertyName,
Object value,
BitSet bsSelected) |
void |
setShapeSize(int shapeID,
int size,
RadiusData rd,
BitSet bsSelected) |
void |
transformAtoms() |
private Viewer viewer
private Graphics3D g3d
private Shape[] shapes
private static final int[] hoverable
private static int clickableMax
private ModelSet modelSet
private final BitSet bsRenderable
private final int[] minMax
public ShapeManager(Viewer viewer)
public Shape[] getShapes()
public void resetShapes()
private Shape allocateShape(int shapeID)
public Shape getShape(int i)
public void setShapeSize(int shapeID, int size, RadiusData rd, BitSet bsSelected)
public Shape loadShape(int shapeID)
public void setShapeProperty(int shapeID, String propertyName, Object value, BitSet bsSelected)
public void releaseShape(int shapeID)
public int getShapeIdFromObjectName(String objectName)
objectName
- (string) string name of objectpublic void setModelVisibility()
float getAtomShapeValue(int tok, Group group, int atomIndex)
public boolean frankClicked(int x, int y)
Map<String,Object> checkObjectClicked(int x, int y, int modifiers, BitSet bsVisible)
boolean checkObjectDragged(int prevX, int prevY, int x, int y, int modifiers, BitSet bsVisible, int iShape)
boolean checkObjectHovered(int x, int y, BitSet bsVisible, boolean checkBonds)
public void loadDefaultShapes(ModelSet modelSet)
public void refreshShapeTrajectories(int baseModel, BitSet bs, Matrix4f mat)
public void setAtomLabel(String strLabel, int i)
public void findNearestShapeAtomIndex(int x, int y, Atom[] closest, BitSet bsNot)
public void getShapeState(StringBuffer commands, boolean isAll)
public void deleteVdwDependentShapes(BitSet bs)
public void resetBioshapes(BitSet bsAllAtoms)
private void setShapeModelSet(ModelSet newModelSet)
public void mergeShapes(Shape[] newShapes)
BitSet getRenderableBitSet()
public int[] getCrossHairMinMax()
public void transformAtoms()