org.jmol.jvxl.readers

Class JaguarReader

class JaguarReader extends VolumeFileReader

Field Summary
float[]extents
Constructor Summary
JaguarReader(SurfaceGenerator sg, BufferedReader br)
Method Summary
protected floatnextVoxel()
read one value per line
protected voidreadAtomCountAndOrigin()
skip initial stuff and read the origin= line
protected voidreadTitleLines()
nothing much here
protected voidreadVoxelVector(int voxelVectorIndex)
read the extentx=, extenty=, extentz= lines and cache them then read the npts= line and construct the necessary data

Field Detail

extents

private float[] extents

Constructor Detail

JaguarReader

JaguarReader(SurfaceGenerator sg, BufferedReader br)

Method Detail

nextVoxel

protected float nextVoxel()
read one value per line

Returns: the next floating point value

Throws: Exception -- generally a reader issue

readAtomCountAndOrigin

protected void readAtomCountAndOrigin()
skip initial stuff and read the origin= line

Throws: Exception -- generally a reader issue

readTitleLines

protected void readTitleLines()
nothing much here

Throws: Exception -- generally a reader issue

readVoxelVector

protected void readVoxelVector(int voxelVectorIndex)
read the extentx=, extenty=, extentz= lines and cache them then read the npts= line and construct the necessary data

Parameters: voxelVectorIndex 0, 1, or 2

Throws: Exception -- generally a reader issue