/** * Print the stream to standard output. */ void print() { System.out.println("\nstream has " + stream.size() + " entries") ; System.out.println("uncompressed size " + byteCount + " bytes") ; System.out.println("upper position bound: " + mcBounds[1].toString()) ; System.out.println("lower position bound: " + mcBounds[0].toString()) ; System.out.println("X, Y, Z centers (" + ((float)center[0]) + " " + ((float)center[1]) + " " + ((float)center[2]) + ")\n" + "scale " + ((float)scale) + "\n") ; Iterator i = stream.iterator() ; while (i.hasNext()) { System.out.println(i.next().toString() + "\n") ; } }
/** * Print the stream to standard output. */ void print() { System.out.println("\nstream has " + stream.size() + " entries") ; System.out.println("uncompressed size " + byteCount + " bytes") ; System.out.println("upper position bound: " + mcBounds[1].toString()) ; System.out.println("lower position bound: " + mcBounds[0].toString()) ; System.out.println("X, Y, Z centers (" + ((float)center[0]) + " " + ((float)center[1]) + " " + ((float)center[2]) + ")\n" + "scale " + ((float)scale) + "\n") ; Iterator i = stream.iterator() ; while (i.hasNext()) { System.out.println(i.next().toString() + "\n") ; } }
private void printStats() { System.err.println(" bounding box:\n lower " + lbounds.toString() + "\n upper " + ubounds.toString()) ; if (boundsOnly) return ; System.err.print (" number of vertices in GeometryArray output: " + vlist.vertexCount + "\n" + " GeometryArray vertex data present: coords") ; if ((vlist.vertexFormat & GeometryArray.NORMALS) != 0) System.err.print(" normals") ; if ((vlist.vertexFormat & GeometryArray.COLOR) != 0) System.err.print(" colors") ; if ((vlist.vertexFormat & GeometryArray.WITH_ALPHA) != 0) System.err.print(" alpha") ; System.err.println("\n number of strips: " + vlist.stripCount) ; if (vlist.stripCount > 0) System.err.println (" vertices/strip: " + ((float)vlist.vertexCount / (float)vlist.stripCount)) ; } }
/** * Returns a string containing the values of the CachedFrustum. */ @Override public String toString() { return( clipPlanes[0].toString()+"\n"+ clipPlanes[1].toString()+"\n"+ clipPlanes[2].toString()+"\n"+ clipPlanes[3].toString()+"\n"+ clipPlanes[4].toString()+"\n"+ clipPlanes[5].toString()+"\n"+ "corners="+"\n"+ verts[0].toString()+"\n"+ verts[1].toString()+"\n"+ verts[2].toString()+"\n"+ verts[3].toString()+"\n"+ verts[4].toString()+"\n"+ verts[5].toString()+"\n"+ verts[6].toString()+"\n"+ verts[7].toString() ); }