org.jmol.viewer
Class ShapeManager
java.lang.Object
org.jmol.viewer.ShapeManager
public class ShapeManager
- extends Object
Method Summary |
private Shape |
allocateShape(int shapeID)
|
Token |
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)
|
void |
deleteShapeAtoms(Object[] value,
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)
|
Shape |
getShape(int i)
|
int |
getShapeIdFromObjectName(String objectName)
|
Hashtable |
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)
|
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)
|
BitSet |
transformAtoms(boolean firstPass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
viewer
private Viewer viewer
g3d
private Graphics3D g3d
shapes
private Shape[] shapes
modelSet
private ModelSet modelSet
bsOK
private final BitSet bsOK
ShapeManager
public ShapeManager(Viewer viewer)
ShapeManager
public ShapeManager(Viewer viewer,
ModelSet modelSet)
getShapes
public Shape[] getShapes()
resetShapes
public void resetShapes()
allocateShape
private Shape allocateShape(int shapeID)
getShape
public Shape getShape(int i)
setShapeSize
public void setShapeSize(int shapeID,
int size,
RadiusData rd,
BitSet bsSelected)
loadShape
public Shape loadShape(int shapeID)
setShapeProperty
public void setShapeProperty(int shapeID,
String propertyName,
Object value,
BitSet bsSelected)
releaseShape
public void releaseShape(int shapeID)
getShapeProperty
public Object getShapeProperty(int shapeID,
String propertyName,
int index)
getShapeProperty
public boolean getShapeProperty(int shapeID,
String propertyName,
Object[] data)
getShapeIdFromObjectName
public int getShapeIdFromObjectName(String objectName)
setModelVisibility
public void setModelVisibility()
getAtomShapeValue
float getAtomShapeValue(int tok,
Group group,
int atomIndex)
frankClicked
public boolean frankClicked(int x,
int y)
checkObjectHovered
public boolean checkObjectHovered(int x,
int y,
BitSet bsVisible,
boolean checkBonds)
checkObjectClicked
public Token checkObjectClicked(int x,
int y,
int modifiers,
BitSet bsVisible)
checkObjectDragged
public boolean checkObjectDragged(int prevX,
int prevY,
int x,
int y,
int modifiers,
BitSet bsVisible,
int iShape)
getShapeInfo
public Hashtable getShapeInfo()
loadDefaultShapes
public void loadDefaultShapes(ModelSet modelSet)
refreshShapeTrajectories
public void refreshShapeTrajectories(int baseModel,
BitSet bs)
deleteShapeAtoms
public void deleteShapeAtoms(Object[] value,
BitSet bs)
setLabel
public void setLabel(String strLabel,
BitSet bsSelection)
setAtomLabel
public void setAtomLabel(String strLabel,
int i)
findNearestShapeAtomIndex
public void findNearestShapeAtomIndex(int x,
int y,
Atom[] closest,
BitSet bsNot)
getShapeState
public void getShapeState(StringBuffer commands,
boolean isAll)
resetBioshapes
public void resetBioshapes(BitSet bsAllAtoms)
setShapeModelSet
private void setShapeModelSet(ModelSet newModelSet)
mergeShapes
public void mergeShapes(Shape[] newShapes)
transformAtoms
public BitSet transformAtoms(boolean firstPass)