Package org.jmol.shapecgo
Class CGO
- java.lang.Object
-
- org.jmol.shape.Shape
-
- org.jmol.shape.MeshCollection
-
- org.jmol.shapecgo.CGO
-
public class CGO extends MeshCollection
-
-
Field Summary
Fields Modifier and Type Field Description private CGOMeshcgoMesh(package private) CGOMesh[]cmeshesprivate intindicatedModelIndexprivate floatnewScaleprivate booleanuseColix-
Fields inherited from class org.jmol.shape.MeshCollection
bsDisplay, colix, color, connections, currentMesh, displayWithinDistance2, displayWithinPoints, explicitID, htObjects, isDisplayWithinNot, isFixed, linkedMesh, meshCount, meshes, modelIndex, nUnnamed, pickedMesh, pickedModel, pickedPt, pickedVertex, PREVIOUS_MESH_ID, previousMeshID, title
-
Fields inherited from class org.jmol.shape.Shape
bsColixSet, bsSizeSet, isBioShape, ms, myType, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, vf, vwr
-
-
Constructor Summary
Constructors Constructor Description CGO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocMesh(java.lang.String thisID, Mesh m)protected voidclean()private voiddeleteMeshElement(int i)protected voiddeleteModels(int modelIndex)private java.lang.StringgetCommand(Mesh mesh)private java.lang.StringgetCommand2(Mesh mesh, int modelCount)java.lang.ObjectgetProperty(java.lang.String property, int index)booleangetPropertyData(java.lang.String property, java.lang.Object[] data)java.lang.ObjectgetShapeDetail()java.lang.StringgetShapeState()private voidinitCGO()private voidscale(Mesh mesh, float newScale)private booleansetCGO(javajs.util.Lst<java.lang.Object> data)voidsetModelVisibilityFlags(BS bsModels)voidsetProperty(java.lang.String propertyName, java.lang.Object value, BS bs)private voidsetPropertySuper(java.lang.String propertyName, java.lang.Object value, BS bs)-
Methods inherited from class org.jmol.shape.MeshCollection
checkExplicit, deleteMeshI, deleteMeshKey, getIndexFromName, getMesh, getMeshList, getPickedPoint, getPropDataMC, getPropMC, initShape, merge, resetObjects, setPropMC, setStatusPicked, setTokenProperty
-
Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getPropShape, getSize, getSizeG, getTranslucentLabel, initializeShape, initModelSet, replaceGroup, setAtomClickability, setModelSet, setPropS, setShapeSizeRD, setSize, setSizeRD, wasClicked
-
-
-
-
Method Detail
-
initCGO
private void initCGO()
-
allocMesh
public void allocMesh(java.lang.String thisID, Mesh m)- Overrides:
allocMeshin classMeshCollection
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.Object value, BS bs)- Specified by:
setPropertyin classShape
-
deleteModels
protected void deleteModels(int modelIndex)
-
getProperty
public java.lang.Object getProperty(java.lang.String property, int index)- Overrides:
getPropertyin classShape- Returns:
- true if serviced
-
getPropertyData
public boolean getPropertyData(java.lang.String property, java.lang.Object[] data)- Overrides:
getPropertyDatain classShape- Returns:
- true if serviced
-
deleteMeshElement
private void deleteMeshElement(int i)
-
setPropertySuper
private void setPropertySuper(java.lang.String propertyName, java.lang.Object value, BS bs)
-
clean
protected void clean()
- Overrides:
cleanin classMeshCollection
-
setCGO
private boolean setCGO(javajs.util.Lst<java.lang.Object> data)
-
scale
private void scale(Mesh mesh, float newScale)
-
getShapeDetail
public java.lang.Object getShapeDetail()
- Overrides:
getShapeDetailin classShape
-
getShapeState
public java.lang.String getShapeState()
- Specified by:
getShapeStatein classShape
-
getCommand
private java.lang.String getCommand(Mesh mesh)
-
getCommand2
private java.lang.String getCommand2(Mesh mesh, int modelCount)
-
setModelVisibilityFlags
public void setModelVisibilityFlags(BS bsModels)
- Overrides:
setModelVisibilityFlagsin classMeshCollection
-
-