Package org.jmol.jvxl.readers
Class JvxlReader
- java.lang.Object
-
- All Implemented Interfaces:
VertexDataServer
public class JvxlReader extends JvxlXmlReader
-
-
Field Summary
-
Fields inherited from class org.jmol.jvxl.readers.JvxlXmlReader
bsVoxelBitSet, colorDataCount, edgeDataCount, haveContourData, haveReadColorData, isXmlFile, JVXL_VERSION, surfaceDataCount, tempDataXml, thisInside
-
Fields inherited from class org.jmol.jvxl.readers.VolumeFileReader
ac, boundingBox, canDownsample, downsampleFactor, downsampleRemainders, endOfData, isAngstroms, nData, negativeAtomCount, nSkipX, nSkipY, nSkipZ, nSurfaces
-
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, haveSurfaceAtoms, isAnisotropic, isEccentric, isJvxl, isPeriodic, isProgressive, isQuiet, isXLowToHigh, jvxlColorDataRead, jvxlCutoff, jvxlData, jvxlDataIs2dContour, jvxlDataIsColorDensity, jvxlDataIsColorMapped, jvxlDataIsPrecisionColor, jvxlEdgeDataRead, jvxlFileHeaderBuffer, jvxlNSurfaceInts, jvxlVoxelBitSet, marchingCubes, marchingSquares, meshData, meshDataServer, minMax, nBytes, nDataPoints, nPointsX, nPointsY, nPointsZ, params, ptTemp, qpc, sg, vertexDataOnly, volumeData, volumetricOrigin, volumetricVectors, voxelCounts, voxelData, xyzMax, xyzMin, yzCount, yzPlanes
-
-
Constructor Summary
Constructors Constructor Description JvxlReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcountData(java.lang.String str)protected voidgotoData(int n, int nPoints)(package private) voidinit2(SurfaceGenerator sg, java.io.BufferedReader br)private voidjvxlReadDefinitionLine(boolean showMsg)protected java.lang.StringjvxlReadFractionData(java.lang.String type, int nPoints)"edge" data includes two parts -- a compressed bitset indicating exactly which edges, in order or processing by Jmol, are crossed by the surface, and a set of fractions indicating how far along that edge (good to 1 part in 8100) that surface crosses that edge.protected voidjvxlSkipData(int nPoints, boolean doSkipColorData)private voidjvxlSkipDataBlock(int nPoints, boolean isInt)protected voidreadParameters()protected voidreadSurfaceData(boolean isMapDataIgnored)-
Methods inherited from class org.jmol.jvxl.readers.JvxlXmlReader
getEncodedVertexData, getSurfacePointAndFraction, getVoxelBitSet, gotoAndReadVoxelData, init2JXR, jvxlDecodeContourData, jvxlDecodeTriangleData, jvxlDecodeVertexData, jvxlReadSurfaceInfo, jvxlSetColorRanges, postProcessVertices, readColorData, readSurfaceDataJXR, readSurfaceDataXML, readVector, readVolumeData
-
Methods inherited from class org.jmol.jvxl.readers.VolumeFileReader
checkAtomLine, closeReader, getNextVoxelValue, getPlane, getPlaneNCI, getSPFv, getValue, init2VFR, initializeSurfaceData, nextVoxel, readSurfaceDataVFR, readVolumeDataVFR, readVolumeParameters, readVoxelVector, recordData, skipComments, skipData, skipDataVFR, swapXZ
-
Methods inherited from class org.jmol.jvxl.readers.SurfaceFileReader
closeReaderSFR, discardTempData, getQuotedStringNext, getTokens, init, init2SFR, newBinaryDocument, parseFloat, parseFloatArray, parseFloatArrayStr, parseFloatRange, parseFloatStr, parseInt, parseIntNext, parseIntStr, rd, setOutputChannel, setStream, skipTo
-
Methods inherited from class org.jmol.jvxl.readers.SurfaceReader
addTriangleCheck, addVC, addVertexCopy, applyColorScale, colorIsosurface, createIsosurface, discardTempDataSR, excludeMaximumSet, excludeMinimumSet, finalizeMapping, getColorPhaseIndex, getMinMaxMappedValues, getPlaneSR, getSPF, getSurfaceAtomIndex, getSurfacePointIndexAndFraction, getValue2, getValueAtPoint, initializeMapping, initializeVolumetricData, initPlanes, initSR, jvxlUpdateInfo, newVoxelDataCube, readAndSetVolumeParameters, resetIsosurface, selectPocket, setBBox, setVectorAnisotropy, setVertexAnisotropy, setVolumeDataV, setVolumetricAnisotropy, setVolumetricOriginAnisotropy, slabIsosurface, updateSurfaceData, updateTriangles
-
-
-
-
Method Detail
-
init2
void init2(SurfaceGenerator sg, java.io.BufferedReader br)
- Overrides:
init2in classJvxlXmlReader
-
readParameters
protected void readParameters() throws java.lang.Exception- Overrides:
readParametersin classJvxlXmlReader- Throws:
java.lang.Exception
-
jvxlReadFractionData
protected java.lang.String jvxlReadFractionData(java.lang.String type, int nPoints)Description copied from class:JvxlXmlReader"edge" data includes two parts -- a compressed bitset indicating exactly which edges, in order or processing by Jmol, are crossed by the surface, and a set of fractions indicating how far along that edge (good to 1 part in 8100) that surface crosses that edge. We are just reading he fractions here. "color" data comprises the corresponding sequence of data mapping values, again stored to a precision of 1 part in 8100, relative to a range of values.- Overrides:
jvxlReadFractionDatain classJvxlXmlReader- Returns:
- data
-
gotoData
protected void gotoData(int n, int nPoints) throws java.lang.Exception- Overrides:
gotoDatain classJvxlXmlReader- Throws:
java.lang.Exception
-
jvxlReadDefinitionLine
private void jvxlReadDefinitionLine(boolean showMsg) throws java.lang.Exception- Throws:
java.lang.Exception
-
readSurfaceData
protected void readSurfaceData(boolean isMapDataIgnored) throws java.lang.Exception- Overrides:
readSurfaceDatain classJvxlXmlReader- Throws:
java.lang.Exception
-
jvxlSkipData
protected void jvxlSkipData(int nPoints, boolean doSkipColorData) throws java.lang.Exception- Overrides:
jvxlSkipDatain classJvxlXmlReader- Throws:
java.lang.Exception
-
jvxlSkipDataBlock
private void jvxlSkipDataBlock(int nPoints, boolean isInt) throws java.lang.Exception- Throws:
java.lang.Exception
-
countData
private int countData(java.lang.String str)
-
-