Class BioShapeCollection
java.lang.Object
org.jmol.shape.Shape
org.jmol.shapebio.BioShapeCollection
When a Cartoon is instantiated with a call to setSize(),
it creates an BioShapeCollection for each BioPolymer in the model set.
It is these shapes that are the real "shapes". Unlike other
shapes, which are indexed by atom and throughout the entire
model set, these shapes are indexed by residue and are
restricted to a given BioPolymer within a given Model.
-
Field Summary
FieldsFields inherited from class Shape
bsColixSet, bsSizeSet, isBioShape, ms, myType, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, vf, vwr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindNearestAtomIndex(int xMouse, int yMouse, Atom[] closest, BS bsNot) getBioShape(int i) intfinal voidvoidvoidreplaceGroup(Group g0, Group g1) voidvoidsetModelVisibilityFlags(BS bsModels) protected voidsetPropBSC(String propertyName, Object value, BS bsSelected) voidsetProperty(String propertyName, Object value, BS bsSelected) voidsetShapeSizeRD(int size, RadiusData rd, BS bsSelected) Methods inherited from class Shape
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, coordinateInRange, encodeColor, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getIndexFromName, getProperty, getPropertyData, getPropShape, getShapeDetail, getSize, getTranslucentLabel, initializeShape, setModelSet, setProperties, setPropS, setSize, setSizeRD, wasClicked
-
Field Details
-
bioShapes
-
-
Constructor Details
-
BioShapeCollection
public BioShapeCollection()
-
-
Method Details
-
initModelSet
public final void initModelSet()- Overrides:
initModelSetin classShape
-
initShape
-
getSizeG
-
replaceGroup
- Overrides:
replaceGroupin classShape- Parameters:
g0-g1-
-
setShapeSizeRD
- Overrides:
setShapeSizeRDin classShape
-
setProperty
- Specified by:
setPropertyin classShape
-
setPropBSC
-
getShapeState
- Specified by:
getShapeStatein classShape
-
findNearestAtomIndex
- Overrides:
findNearestAtomIndexin classShape- Parameters:
xMouse-yMouse-closest-bsNot-
-
setModelVisibilityFlags
- Overrides:
setModelVisibilityFlagsin classShape- Parameters:
bsModels-
-
setAtomClickability
public void setAtomClickability()- Overrides:
setAtomClickabilityin classShape
-
getBioShape
-