org.jmol.shapesurface
Class Pmesh

java.lang.Object
  extended by org.jmol.shape.Shape
      extended by org.jmol.shape.MeshCollection
          extended by org.jmol.shapesurface.MeshFileCollection
              extended by org.jmol.shapesurface.Pmesh

public class Pmesh
extends MeshFileCollection


Nested Class Summary
(package private)  class Pmesh.PmeshBinaryDocument
           
 
Field Summary
(package private)  java.io.BufferedReader br
           
(package private)  Pmesh.PmeshBinaryDocument doc
           
private  boolean iHaveModelIndex
           
private  boolean isBinary
           
private  boolean isOnePerLine
           
private static java.lang.String PMESH_BINARY_MAGIC_NUMBER
           
(package private)  java.lang.String pmeshError
           
 
Fields inherited from class org.jmol.shapesurface.MeshFileCollection
line, next
 
Fields inherited from class org.jmol.shape.MeshCollection
allowMesh, colix, currentMesh, explicitID, isFixed, linkedMesh, meshCount, meshes, modelCount, modelIndex, myType, nUnnamed, previousMeshID, script, title
 
Fields inherited from class org.jmol.shape.Shape
g3d, isBioShape, modelSet, myVisibilityFlag, shapeID, translucentAllowed, translucentLevel, viewer
 
Constructor Summary
Pmesh()
           
 
Method Summary
private  void closeReaders()
           
private  int getInt()
           
 java.lang.Object getProperty(java.lang.String property, int index)
           
 void initShape()
           
private  boolean readPmesh()
           
private  int[] readPolygon(int iPoly)
           
private  boolean readPolygonCount()
           
private  boolean readPolygonIndexes()
           
private  boolean readVertexCount()
           
private  boolean readVertices()
           
 void setProperty(java.lang.String propertyName, java.lang.Object value, java.util.BitSet bs)
           
 
Methods inherited from class org.jmol.shapesurface.MeshFileCollection
getTokens, parseFloat, parseFloat, parseFloatNext, parseInt, parseInt, parseInt, parseIntNext
 
Methods inherited from class org.jmol.shape.MeshCollection
allocMesh, deleteMesh, getIndexFromName, getModelIndex, getShapeState, setModelIndex, setVisibilityFlags
 
Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, checkObjectHovered, 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

isOnePerLine

private boolean isOnePerLine

isBinary

private boolean isBinary

iHaveModelIndex

private boolean iHaveModelIndex

pmeshError

java.lang.String pmeshError

PMESH_BINARY_MAGIC_NUMBER

private static final java.lang.String PMESH_BINARY_MAGIC_NUMBER
See Also:
Constant Field Values

br

java.io.BufferedReader br

doc

Pmesh.PmeshBinaryDocument doc
Constructor Detail

Pmesh

public Pmesh()
Method Detail

initShape

public void initShape()
Overrides:
initShape in class MeshCollection

setProperty

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

getProperty

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

readPmesh

private boolean readPmesh()

closeReaders

private void closeReaders()

getInt

private int getInt()
            throws java.lang.Exception
Throws:
java.lang.Exception

readVertexCount

private boolean readVertexCount()
                         throws java.lang.Exception
Throws:
java.lang.Exception

readVertices

private boolean readVertices()
                      throws java.lang.Exception
Throws:
java.lang.Exception

readPolygonCount

private boolean readPolygonCount()
                          throws java.lang.Exception
Throws:
java.lang.Exception

readPolygonIndexes

private boolean readPolygonIndexes()
                            throws java.lang.Exception
Throws:
java.lang.Exception

readPolygon

private int[] readPolygon(int iPoly)
                   throws java.lang.Exception
Throws:
java.lang.Exception