Clazz.declarePackage ("org.jmol.jvxl.readers");
Clazz.load (["org.jmol.jvxl.readers.VolumeFileReader"], "org.jmol.jvxl.readers.PltFormattedReader", ["org.jmol.util.StringXBuilder", "org.jmol.viewer.Viewer"], function () {
c$ = Clazz.declareType (org.jmol.jvxl.readers, "PltFormattedReader", org.jmol.jvxl.readers.VolumeFileReader);
Clazz.makeConstructor (c$, 
function () {
Clazz.superConstructor (this, org.jmol.jvxl.readers.PltFormattedReader, []);
});
Clazz.defineMethod (c$, "init2", 
function (sg, br) {
Clazz.superCall (this, org.jmol.jvxl.readers.PltFormattedReader, "init2", [sg, br]);
this.isAngstroms = true;
this.jvxlData.wasCubic = true;
this.jvxlFileHeaderBuffer =  new org.jmol.util.StringXBuilder ();
this.nSurfaces = 1;
}, "org.jmol.jvxl.readers.SurfaceGenerator,java.io.BufferedReader");
Clazz.overrideMethod (c$, "readParameters", 
function () {
var n1 = this.parseIntStr (this.readLine ());
var n2 = this.parseInt ();
this.nPointsX = this.parseIntStr (this.readLine ());
this.nPointsY = this.parseInt ();
this.nPointsZ = this.parseInt ();
this.jvxlFileHeaderBuffer.append ("Plt formatted data (" + n1 + "," + n2 + ") " + this.nPointsX + " x " + this.nPointsY + " x " + this.nPointsZ + " \nJmol " + org.jmol.viewer.Viewer.getJmolVersion () + '\n');
this.volumetricOrigin.set (0, 0, 0);
var xmin = this.parseFloatStr (this.readLine ().substring (0, 12));
var xmax = this.parseFloatStr (this.line.substring (12, 24));
var ymin = this.parseFloatStr (this.line.substring (24, 36));
var ymax = this.parseFloatStr (this.line.substring (36, 48));
var zmin = this.parseFloatStr (this.line.substring (48, 60));
var zmax = this.parseFloatStr (this.line.substring (60, 72));
this.volumetricOrigin.set (xmin, ymin, zmin);
this.voxelCounts[0] = this.nPointsX;
this.voxelCounts[1] = this.nPointsY;
this.voxelCounts[2] = this.nPointsZ;
this.volumetricVectors[0].set (0, 0, (xmax - xmin) / this.nPointsX);
this.volumetricVectors[1].set (0, (ymax - ymin) / this.nPointsY, 0);
this.volumetricVectors[2].set ((zmax - zmin) / this.nPointsZ, 0, 0);
});
});
