|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.compression.GeometryCompressor
GeometryCompressor
.
public class GeometryCompressor
A GeometryCompressor takes a stream of geometric elements and quantization parameters (the CompressionStream object) and compresses it into a stream of commands as defined by appendix B of the Java 3D specification. The resulting data may be output in the form of a CompressedGeometry node component or appended to a CompressedGeometryFile.
CompressionStream
,
CompressedGeometry
,
CompressedGeometryFile
Field Summary | |
---|---|
private static boolean |
benchmark
Deprecated. |
private CompressedGeometryHeader |
cgHeader
Deprecated. |
private HuffmanTable |
huffmanTable
Deprecated. |
private CommandStream |
outputBuffer
Deprecated. |
private static boolean |
printHuffman
Deprecated. |
private static boolean |
printStream
Deprecated. |
private long |
startTime
Deprecated. |
Constructor Summary | |
---|---|
GeometryCompressor()
Deprecated. |
Method Summary | |
---|---|
CompressedGeometry |
compress(CompressionStream stream)
Deprecated. Compress a stream into a CompressedGeometry node component. |
void |
compress(CompressionStream stream,
CompressedGeometryFile f)
Deprecated. Compress a stream and append the output to a CompressedGeometryFile. |
private void |
compressStream(CompressionStream stream)
Deprecated. |
private void |
printBench(CompressionStream stream)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean benchmark
private static final boolean printStream
private static final boolean printHuffman
private HuffmanTable huffmanTable
private CommandStream outputBuffer
private CompressedGeometryHeader cgHeader
private long startTime
Constructor Detail |
---|
public GeometryCompressor()
Method Detail |
---|
public CompressedGeometry compress(CompressionStream stream)
stream
- CompressionStream containing the geometry to be compressed
public void compress(CompressionStream stream, CompressedGeometryFile f) throws java.io.IOException
stream
- CompressionStream containing the geometry to be compressedf
- a currently open CompressedGeometryFile with write access
java.io.IOException
- if write failsprivate void compressStream(CompressionStream stream)
private void printBench(CompressionStream stream)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |