org.jmol.jvxl.readers
Class PmeshReader
java.lang.Object
org.jmol.jvxl.readers.SurfaceReader
org.jmol.jvxl.readers.SurfaceFileReader
org.jmol.jvxl.readers.PolygonFileReader
org.jmol.jvxl.readers.PmeshReader
- All Implemented Interfaces:
- VertexDataServer
- Direct Known Subclasses:
- ObjReader
class PmeshReader
- extends PolygonFileReader
Fields inherited from class org.jmol.jvxl.readers.SurfaceReader |
allowSigma, ANGSTROMS_PER_BOHR, anisotropy, center, cJvxlEdgeNaN, colorFractionBase, colorFractionRange, contourVertexCount, dataMax, dataMean, dataMin, defaultCutoff, defaultMappedDataMax, defaultMappedDataMin, eccentricityMatrix, eccentricityMatrixInverse, eccentricityRatio, eccentricityScale, edgeFractionBase, edgeFractionRange, fractionData, hasColorData, isAnisotropic, isEccentric, isJvxl, isProgressive, isXLowToHigh, jvxlColorDataRead, jvxlCutoff, jvxlData, jvxlDataIs2dContour, jvxlDataIsColorMapped, jvxlDataIsPrecisionColor, jvxlEdgeDataRead, jvxlFileHeaderBuffer, jvxlNSurfaceInts, jvxlVoxelBitSet, mappingPlane, marchingSquares, meshData, meshDataServer, minMax, nBytes, nDataPoints, nPointsX, nPointsY, nPointsZ, params, ptTemp, sg, vertexDataOnly, volumeData, volumetricOrigin, volumetricVectors, voxelCounts, voxelData, xyzMax, xyzMin |
Methods inherited from class org.jmol.jvxl.readers.SurfaceFileReader |
closeReader, discardTempData, getNextQuotedString, getTokens, parseFloat, parseFloat, parseFloatArray, parseFloatArray, parseInt, parseInt, parseIntNext, readLine, setOutputStream, skipTo |
Methods inherited from class org.jmol.jvxl.readers.SurfaceReader |
addVertexCopy, applyColorScale, colorIsosurface, createIsosurface, excludeMaximumSet, excludeMinimumSet, finalizeMapping, getColorPhaseIndex, getMinMaxMappedValues, getPlane, getSurfacePointAndFraction, getSurfacePointIndexAndFraction, getValue, getValueAtPoint, gotoAndReadVoxelData, gotoData, initializeMapping, initializeVolumetricData, jvxlUpdateInfo, readAndSetVolumeParameters, readColorData, readTheVolumeData, resetIsosurface, selectPocket, setBoundingBox, setMappingPlane, setVectorAnisotropy, setVertexAnisotropy, setVolumeData, setVolumetricAnisotropy, setVolumetricOriginAnisotropy, slabIsosurface, updateSurfaceData, updateTriangles |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PMESH_BINARY_MAGIC_NUMBER
static final String PMESH_BINARY_MAGIC_NUMBER
- See Also:
- Constant Field Values
isBinary
private boolean isBinary
nPolygons
protected int nPolygons
pmeshError
protected String pmeshError
type
protected String type
isClosedFace
protected boolean isClosedFace
fixedCount
protected int fixedCount
onePerLine
protected boolean onePerLine
vertexBase
protected int vertexBase
vertexMap
protected int[] vertexMap
tokens
protected String[] tokens
iToken
protected int iToken
PmeshReader
PmeshReader(SurfaceGenerator sg,
BufferedReader br)
PmeshReader
PmeshReader(SurfaceGenerator sg,
String fileName,
BufferedReader br)
setHeader
protected void setHeader()
checkBinary
protected boolean checkBinary(String fileName)
getSurfaceData
void getSurfaceData()
throws Exception
- Specified by:
getSurfaceData
in class PolygonFileReader
- Throws:
Exception
readVerticesAndPolygons
protected boolean readVerticesAndPolygons()
readBinaryHeader
boolean readBinaryHeader()
readVertices
protected boolean readVertices()
throws Exception
- Throws:
Exception
readPolygons
protected boolean readPolygons()
throws Exception
- Throws:
Exception
addTriangleCheck
public int addTriangleCheck(int iA,
int iB,
int iC,
int check,
int check2,
boolean isAbsolute,
int color)
- Description copied from interface:
VertexDataServer
- addTriangleCheck adds a triangle along with a 3-bit check indicating
which edges to draw in mesh mode: 1 (iA-iB) + 2 (iB-iC) + 4 (iC-iA)
- Specified by:
addTriangleCheck
in interface VertexDataServer
- Overrides:
addTriangleCheck
in class SurfaceReader
check2
- TODO
- Returns:
- polygon index or -1
nextToken
private String nextToken()
throws Exception
- Throws:
Exception
getInt
private int getInt()
throws Exception
- Throws:
Exception
getFloat
private float getFloat()
throws Exception
- Throws:
Exception