org.jmol.shape
Class MeshCollection
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.MeshCollection
- Direct Known Subclasses:
- Draw, Isosurface
public abstract class MeshCollection
- extends Shape
Method Summary |
void |
allocMesh(java.lang.String thisID,
Mesh m)
|
protected void |
checkExplicit(java.lang.String id)
|
protected void |
clean()
|
private void |
deleteMesh()
|
void |
deleteMesh(int i)
|
protected void |
deleteMesh(java.lang.String key)
|
int |
getIndexFromName(java.lang.String thisID)
|
Mesh |
getMesh(java.lang.String thisID)
|
java.lang.Object |
getProperty(java.lang.String property,
int index)
|
boolean |
getProperty(java.lang.String property,
java.lang.Object[] data)
|
private java.lang.Object |
getVertices(Mesh mesh)
|
void |
initShape()
|
void |
merge(Shape shape)
called by ParallelProcessor at completion |
private Mesh |
setMesh(java.lang.String thisID)
|
private void |
setMeshTokenProperty(Mesh m,
int tokProp,
boolean bProp,
boolean testD)
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value,
java.util.BitSet bs)
may come from any source -- executed AFTER a shape's own setProperty method |
protected void |
setStatusPicked(int flag,
javax.vecmath.Point3f v)
|
private void |
setTokenProperty(int tokProp,
boolean bProp,
boolean testD)
|
void |
setVisibilityFlags(java.util.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 |
meshCount
public int meshCount
meshes
public Mesh[] meshes
currentMesh
public Mesh currentMesh
isFixed
public boolean isFixed
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
modelIndex
protected int modelIndex
displayWithinDistance2
protected float displayWithinDistance2
isDisplayWithinNot
protected boolean isDisplayWithinNot
displayWithinPoints
protected java.util.List<javax.vecmath.Point3f> displayWithinPoints
bsDisplay
protected java.util.BitSet bsDisplay
title
public java.lang.String[] title
pickedMesh
protected Mesh pickedMesh
pickedModel
protected int pickedModel
pickedVertex
protected int pickedVertex
connections
protected int[] connections
htObjects
protected java.util.Map<java.lang.String,Mesh> htObjects
color
protected int color
PREVIOUS_MESH_ID
public static final java.lang.String PREVIOUS_MESH_ID
- See Also:
- Constant Field Values
MeshCollection
public MeshCollection()
setMesh
private Mesh setMesh(java.lang.String thisID)
allocMesh
public void allocMesh(java.lang.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(java.lang.String propertyName,
java.lang.Object value,
java.util.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(java.lang.String id)
setTokenProperty
private void setTokenProperty(int tokProp,
boolean bProp,
boolean testD)
setMeshTokenProperty
private void setMeshTokenProperty(Mesh m,
int tokProp,
boolean bProp,
boolean testD)
getProperty
public boolean getProperty(java.lang.String property,
java.lang.Object[] data)
- Overrides:
getProperty
in class Shape
- Returns:
- true if serviced
getProperty
public java.lang.Object getProperty(java.lang.String property,
int index)
- Overrides:
getProperty
in class Shape
- Returns:
- true if serviced
getVertices
private java.lang.Object getVertices(Mesh mesh)
clean
protected void clean()
deleteMesh
private void deleteMesh()
deleteMesh
protected void deleteMesh(java.lang.String key)
deleteMesh
public void deleteMesh(int i)
getMesh
public Mesh getMesh(java.lang.String thisID)
getIndexFromName
public int getIndexFromName(java.lang.String thisID)
- Overrides:
getIndexFromName
in class Shape
- Returns:
- index
setVisibilityFlags
public void setVisibilityFlags(java.util.BitSet bs)
- Overrides:
setVisibilityFlags
in class Shape
setStatusPicked
protected void setStatusPicked(int flag,
javax.vecmath.Point3f v)