org.jmol.shape
Class Mesh

java.lang.Object
  extended by org.jmol.util.MeshSurface
      extended by org.jmol.shape.Mesh
Direct Known Subclasses:
DrawMesh, IsosurfaceMesh

public class Mesh
extends MeshSurface


Field Summary
 int atomIndex
           
 java.util.BitSet[] bitsets
           
 java.lang.Object cappingObject
           
 int checkByteCount
           
 java.lang.String colorCommand
           
 boolean colorDensity
           
 int diameter
           
 boolean drawTriangles
           
 boolean fillTriangles
           
 boolean frontOnly
           
 boolean havePlanarContours
           
 boolean haveXyPoints
           
 int index
           
 boolean insideOut
           
 boolean isPolygonSet
           
 boolean isTwoSided
           
 boolean isValid
           
 javax.vecmath.Point3f lattice
           
 int lighting
           
 java.util.List lineData
           
 Mesh linkedMesh
           
 short meshColix
           
 java.lang.String meshType
           
 int modelIndex
           
private  int normixCount
           
 short[] normixes
           
static java.lang.String PREVIOUS_MESH_ID
           
 javax.vecmath.Point3f ptCenter
           
 float scale
           
 java.lang.String scriptCommand
           
 boolean showContourLines
           
 boolean showPoints
           
 boolean showTriangles
           
 java.lang.Object slabbingObject
           
 java.lang.String thisID
           
 java.lang.String[] title
           
 javax.vecmath.Vector3f vAB
           
 javax.vecmath.Vector3f vAC
           
 int visibilityFlags
           
 boolean visible
           
 javax.vecmath.Vector3f vTemp
           
 float width
           
 java.util.List xmlProperties
           
 
Fields inherited from class org.jmol.util.MeshSurface
bsFaces, colix, haveQuads, iA, iB, iC, isColorSolid, nSets, offsetVertices, polygonColixes, polygonCount, polygonIndexes, ptOffset, scale3d, SEED_COUNT, surfaceSet, vertexColixes, vertexCount, vertexNormals, vertexSets, vertexValues, vertices
 
Constructor Summary
Mesh(java.lang.String thisID, JmolRendererInterface g3d, short colix, int index)
           
 
Method Summary
 void clear(java.lang.String meshType)
           
private  void flipLighting(int lighting)
           
 javax.vecmath.Vector3f[] getNormals(javax.vecmath.Point3f[] vertices, javax.vecmath.Point4f plane)
           
 javax.vecmath.Point3f[] getOffsetVertices(javax.vecmath.Point4f thePlane)
           
 java.lang.String getState(java.lang.String type)
           
 int getVertexIndexFromNumber(int vertexIndex)
           
 void initialize(int lighting, javax.vecmath.Point3f[] vertices, javax.vecmath.Point4f plane)
           
private  void invertNormixes()
           
 void setLighting(int lighting)
           
 void setTranslucent(boolean isTranslucent, float iLevel)
           
 void setVisibilityFlags(int n)
           
protected  void sumVertexNormals(javax.vecmath.Point3f[] vertices, javax.vecmath.Vector3f[] normals)
           
 
Methods inherited from class org.jmol.util.MeshSurface
addPolygon, addQuad, addTriangle, addTriangleCheck, addVertexCopy, addVertexCopy, getIntersection, invalidatePolygons, setABC, setColix, setPolygonCount, slabPolygons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREVIOUS_MESH_ID

public static final java.lang.String PREVIOUS_MESH_ID
See Also:
Constant Field Values

title

public java.lang.String[] title

meshColix

public short meshColix

normixes

public short[] normixes

normixCount

private int normixCount

bitsets

public java.util.BitSet[] bitsets

lineData

public java.util.List lineData

thisID

public java.lang.String thisID

isValid

public boolean isValid

scriptCommand

public java.lang.String scriptCommand

colorCommand

public java.lang.String colorCommand

lattice

public javax.vecmath.Point3f lattice

visible

public boolean visible

lighting

public int lighting

scale

public float scale

haveXyPoints

public boolean haveXyPoints

isPolygonSet

public boolean isPolygonSet

diameter

public int diameter

width

public float width

ptCenter

public javax.vecmath.Point3f ptCenter

meshType

public java.lang.String meshType

linkedMesh

public Mesh linkedMesh

index

public int index

atomIndex

public int atomIndex

modelIndex

public int modelIndex

visibilityFlags

public int visibilityFlags

insideOut

public boolean insideOut

checkByteCount

public int checkByteCount

showContourLines

public boolean showContourLines

showPoints

public boolean showPoints

drawTriangles

public boolean drawTriangles

fillTriangles

public boolean fillTriangles

showTriangles

public boolean showTriangles

frontOnly

public boolean frontOnly

isTwoSided

public boolean isTwoSided

havePlanarContours

public boolean havePlanarContours

vAB

public final javax.vecmath.Vector3f vAB

vAC

public final javax.vecmath.Vector3f vAC

vTemp

public final javax.vecmath.Vector3f vTemp

xmlProperties

public java.util.List xmlProperties

colorDensity

public boolean colorDensity

cappingObject

public java.lang.Object cappingObject

slabbingObject

public java.lang.Object slabbingObject
Constructor Detail

Mesh

public Mesh(java.lang.String thisID,
            JmolRendererInterface g3d,
            short colix,
            int index)
Method Detail

setVisibilityFlags

public void setVisibilityFlags(int n)

clear

public void clear(java.lang.String meshType)

initialize

public void initialize(int lighting,
                       javax.vecmath.Point3f[] vertices,
                       javax.vecmath.Point4f plane)

getNormals

public javax.vecmath.Vector3f[] getNormals(javax.vecmath.Point3f[] vertices,
                                           javax.vecmath.Point4f plane)

setLighting

public void setLighting(int lighting)

flipLighting

private void flipLighting(int lighting)

invertNormixes

private void invertNormixes()

setTranslucent

public void setTranslucent(boolean isTranslucent,
                           float iLevel)

sumVertexNormals

protected void sumVertexNormals(javax.vecmath.Point3f[] vertices,
                                javax.vecmath.Vector3f[] normals)

getState

public java.lang.String getState(java.lang.String type)

getOffsetVertices

public javax.vecmath.Point3f[] getOffsetVertices(javax.vecmath.Point4f thePlane)

getVertexIndexFromNumber

public int getVertexIndexFromNumber(int vertexIndex)