org.jmol.shape
Class MeshCollection

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

public abstract class MeshCollection
extends Shape


Field Summary
 String actualID
           
protected  boolean allowContourLines
           
protected  boolean allowMesh
           
 short colix
           
 Mesh currentMesh
           
 boolean explicitID
           
protected  boolean haveContours
           
protected  Hashtable htObjects
           
protected  boolean iHaveModelIndex
           
 boolean isFixed
           
protected  Mesh linkedMesh
           
 int meshCount
           
 Mesh[] meshes
           
 int modelCount
           
protected  int modelIndex
           
 String myType
           
 int nUnnamed
           
protected  Mesh pickedMesh
           
protected  int pickedModel
           
protected  int pickedVertex
           
protected  String previousMeshID
           
 String script
           
 String[] title
           
 
Fields inherited from class org.jmol.shape.Shape
g3d, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer, xmlProperties
 
Constructor Summary
MeshCollection()
           
 
Method Summary
 void allocMesh(String thisID, Mesh m)
           
protected  void checkExplicit(String id)
           
protected  void clean()
           
private  void deleteMesh()
           
 void deleteMesh(int i)
           
protected  void deleteMesh(String key)
           
 int getIndexFromName(String thisID)
           
 Mesh getMesh(String thisID)
           
protected  void getModelIndex(String script)
           
 Object getProperty(String property, int index)
           
 boolean getProperty(String property, Object[] data)
           
private  Object getVertices(Mesh mesh)
           
 void initShape()
           
 void merge(Shape shape)
          called by ParallelProcessor at completion
private  Mesh setMesh(String thisID)
           
private  void setMeshTokenProperty(Mesh m, int tokProp, boolean bProp)
           
 void setModelIndex(int atomIndex, int modelIndex)
           
 void setProperty(String propertyName, Object value, BitSet bs)
          may come from any source -- executed AFTER a shape's own setProperty method
protected  void setStatusPicked(int flag, Point3f v)
           
private  void setTokenProperty(int tokProp, boolean bProp)
           
 void setVisibilityFlags(BitSet bs)
           
 
Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getShapeCommands, getShapeCommands, getShapeDetail, getShapeState, getSize, getSize, getViewer, initializeShape, initModelSet, setColix, setColix, setColix, setModelClickability, setModelSet, setShapeProperty, setShapeSize, setSize, 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 String script

nUnnamed

public int nUnnamed

colix

public short colix

myType

public String myType

explicitID

public boolean explicitID

actualID

public String actualID

previousMeshID

protected String previousMeshID

linkedMesh

protected Mesh linkedMesh

iHaveModelIndex

protected boolean iHaveModelIndex

modelIndex

protected int modelIndex

allowContourLines

protected boolean allowContourLines

haveContours

protected boolean haveContours

title

public String[] title

allowMesh

protected boolean allowMesh

pickedMesh

protected Mesh pickedMesh

pickedModel

protected int pickedModel

pickedVertex

protected int pickedVertex

htObjects

protected Hashtable htObjects
Constructor Detail

MeshCollection

public MeshCollection()
Method Detail

setMesh

private Mesh setMesh(String thisID)

allocMesh

public void allocMesh(String thisID,
                      Mesh m)

merge

public void merge(Shape shape)
called by ParallelProcessor at completion

Overrides:
merge in class Shape
Parameters:
shape -

initShape

public void initShape()
Overrides:
initShape in class Shape

setProperty

public void setProperty(String propertyName,
                        Object value,
                        BitSet bs)
Description copied from class: Shape
may come from any source -- executed AFTER a shape's own setProperty method

Overrides:
setProperty in class Shape

checkExplicit

protected void checkExplicit(String id)

setTokenProperty

private void setTokenProperty(int tokProp,
                              boolean bProp)

setMeshTokenProperty

private void setMeshTokenProperty(Mesh m,
                                  int tokProp,
                                  boolean bProp)

getProperty

public boolean getProperty(String property,
                           Object[] data)
Overrides:
getProperty in class Shape

getProperty

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

getVertices

private Object getVertices(Mesh mesh)

clean

protected void clean()

deleteMesh

private void deleteMesh()

deleteMesh

protected void deleteMesh(String key)

deleteMesh

public void deleteMesh(int i)

getMesh

public Mesh getMesh(String thisID)

getIndexFromName

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

setModelIndex

public void setModelIndex(int atomIndex,
                          int modelIndex)

setVisibilityFlags

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

getModelIndex

protected void getModelIndex(String script)

setStatusPicked

protected void setStatusPicked(int flag,
                               Point3f v)