Class Shape
java.lang.Object
org.jmol.shape.Shape
- Direct Known Subclasses:
AtomShape, BioShapeCollection, Dipoles, FontLineShape, Frank, MeshCollection, Sticks, TextShape
Shape now encompasses:
AtomShape (abstract)
|
Balls, Dots, Ellipsoids, Halos, Labels, Polyhedra, Stars, Vectors
|
GeoSurface
BioShapeCollection (abstract)
|
Backbone, Cartoon, MeshRibbon, Ribbons, Rockets, Strands, Trace
Dipoles
FontLineShape (abstract)
|
Axes, Bbcage, Frank, Uccage
Measures
MeshCollection (abstract)
| |
Draw Isosurface
|
LcaoCartoon, MolecularOrbital, Pmesh
Sticks
|
Hsticks, Sssticks
TextShape (abstract)
|
Echo, Hover
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final floatintbooleanprotected floatintshape visibility flag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidvoidcheckBoundsMinMax(P3 pointMin, P3 pointMax) checkObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking) booleancheckObjectDragged(int prevX, int prevY, int x, int y, int dragAction, BS bsVisible) booleancheckObjectHovered(int x, int y, BS bsVisible) protected intcoordinateInRange(int x, int y, T3 vertex, int dmin2, P3i ptXY) static StringencodeColor(short colix) voidfindNearestAtomIndex(int xMouse, int yMouse, Atom[] closest, BS bsNot) static shortprotected shortprotected shortshortgetColixI(short colix, byte paletteID, int atomIndex) static StringgetColorCommand(String type, byte pid, short colix, boolean translucentAllowed) static StringgetColorCommandUnk(String type, short colix, boolean translucentAllowed) static StringgetFontCommand(String type, Font font) intgetIndexFromName(String thisID) getProperty(String property, int index) booleangetPropertyData(String property, Object[] data) protected booleangetPropShape(String property, Object[] data) abstract StringintgetSize(int atomIndex) overridden in Dots, CGOMesh, and AtomShapeintstatic StringgetTranslucentLabel(short colix) final voidinitializeShape(Viewer vwr, ModelSet modelSet, int shapeID) protected voidabstract voidvoidreplaceGroup(Group g0, Group g1) voidvoidsetModelSet(ModelSet modelSet) voidsetModelVisibilityFlags(BS bsModels) voidsetProperties(Object value) abstract voidsetProperty(String propertyName, Object value, BS bsSelected) protected voidvoidsetShapeSizeRD(int size, RadiusData rd, BS bsSelected) protected voidprotected voidsetSizeRD(RadiusData rd, BS bsSelected) booleanwasClicked(int x, int y)
-
Field Details
-
myType
-
RADIUS_MAX
public static final float RADIUS_MAX- See Also:
-
vwr
-
ms
-
shapeID
public int shapeID -
vf
public int vfshape visibility flag -
translucentLevel
protected float translucentLevel -
translucentAllowed
public boolean translucentAllowed -
isBioShape
public boolean isBioShape -
bsSizeSet
-
bsColixSet
-
-
Constructor Details
-
Shape
public Shape()
-
-
Method Details
-
getShapeState
-
setProperty
-
initializeShape
-
initShape
public abstract void initShape() -
setModelVisibilityFlags
- Parameters:
bsModels-
-
getSize
public int getSize(int atomIndex) overridden in Dots, CGOMesh, and AtomShape- Parameters:
atomIndex-- Returns:
- size
-
getSizeG
- Parameters:
group-- Returns:
- size
-
replaceGroup
-
setModelSet
-
initModelSet
protected void initModelSet() -
setShapeSizeRD
-
setSize
- Parameters:
size-bsSelected-
-
setSizeRD
- Parameters:
rd-bsSelected-
-
setPropS
-
getPropertyData
-
getPropShape
-
getProperty
-
getIndexFromName
- Parameters:
thisID-- Returns:
- index
-
wasClicked
public boolean wasClicked(int x, int y) - Parameters:
x-y-- Returns:
- T/F
-
findNearestAtomIndex
-
checkBoundsMinMax
-
setAtomClickability
public void setAtomClickability() -
checkObjectClicked
-
checkObjectHovered
- Parameters:
x-y-bsVisible-- Returns:
- T/F
-
checkObjectDragged
- Parameters:
prevX-prevY-x-y-dragAction-bsVisible-- Returns:
- T/F
-
coordinateInRange
-
getColixI
public short getColixI(short colix, byte paletteID, int atomIndex) -
getColixA
-
getColixB
-
getShapeDetail
-
getColix
-
getFontCommand
-
getColorCommandUnk
-
getColorCommand
-
encodeColor
-
getTranslucentLabel
-
appendCmd
-
setProperties
-