org.jmol.shape
Class MeshCollection

java.lang.Object
  extended by org.jmol.shape.Shape
      extended by org.jmol.shape.MeshCollection
Direct Known Subclasses:
Draw, MeshFileCollection

public abstract class MeshCollection
extends Shape


Field Summary
protected  boolean allowMesh
           
 short colix
           
 Mesh currentMesh
           
 boolean explicitID
           
protected  boolean iHaveModelIndex
           
 boolean isFixed
           
protected  Mesh linkedMesh
           
 int meshCount
           
 Mesh[] meshes
           
 int modelCount
           
protected  int modelIndex
           
 java.lang.String myType
           
 int nUnnamed
           
protected  java.lang.String previousMeshID
           
 java.lang.String script
           
 java.lang.String[] title
           
 
Fields inherited from class org.jmol.shape.Shape
g3d, isBioShape, modelSet, myVisibilityFlag, shapeID, translucentAllowed, translucentLevel, viewer
 
Constructor Summary
MeshCollection()
           
 
Method Summary
 void allocMesh(java.lang.String thisID)
           
private  void deleteMesh()
           
 void deleteMesh(int i)
           
 int getIndexFromName(java.lang.String thisID)
           
private  void getMeshCommand(java.lang.StringBuffer sb, int i)
           
protected  void getModelIndex(java.lang.String script)
           
 java.lang.Object getProperty(java.lang.String property, int index)
           
 java.lang.String getShapeState()
           
 void initShape()
           
private  Mesh setMesh(java.lang.String thisID)
           
 void setModelIndex(int atomIndex, int modelIndex)
           
private  void setProperty(int tokProp, boolean bProp)
           
 void setProperty(java.lang.String propertyName, java.lang.Object value, java.util.BitSet bs)
           
 void setVisibilityFlags(java.util.BitSet bs)
           
 
Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getShapeCommands, getShapeCommands, getShapeDetail, getViewer, initializeShape, initModelSet, remapColors, setColix, setColix, setModelClickability, setModelSet, setSize, setStateInfo, setStateInfo, wasClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

meshCount

public int meshCount

meshes

public Mesh[] meshes

currentMesh

public Mesh currentMesh

modelCount

public int modelCount

isFixed

public boolean isFixed

script

public java.lang.String script

nUnnamed

public int nUnnamed

colix

public short colix

myType

public java.lang.String myType

explicitID

public boolean explicitID

previousMeshID

protected java.lang.String previousMeshID

linkedMesh

protected Mesh linkedMesh

iHaveModelIndex

protected boolean iHaveModelIndex

modelIndex

protected int modelIndex

title

public java.lang.String[] title

allowMesh

protected boolean allowMesh
Constructor Detail

MeshCollection

public MeshCollection()
Method Detail

setMesh

private Mesh setMesh(java.lang.String thisID)

allocMesh

public void allocMesh(java.lang.String thisID)

initShape

public void initShape()
Overrides:
initShape in class Shape

setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.Object value,
                        java.util.BitSet bs)
Overrides:
setProperty in class Shape

setProperty

private void setProperty(int tokProp,
                         boolean bProp)

getProperty

public java.lang.Object getProperty(java.lang.String property,
                                    int index)
Overrides:
getProperty in class Shape

deleteMesh

private void deleteMesh()

deleteMesh

public void deleteMesh(int i)

getIndexFromName

public int getIndexFromName(java.lang.String thisID)
Overrides:
getIndexFromName in class Shape

setModelIndex

public void setModelIndex(int atomIndex,
                          int modelIndex)

getShapeState

public java.lang.String getShapeState()
Overrides:
getShapeState in class Shape

getMeshCommand

private void getMeshCommand(java.lang.StringBuffer sb,
                            int i)

setVisibilityFlags

public void setVisibilityFlags(java.util.BitSet bs)
Overrides:
setVisibilityFlags in class Shape

getModelIndex

protected void getModelIndex(java.lang.String script)