All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.CompressedGeometry

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.Geometry
                           |
                           +----java.media.j3d.CompressedGeometry

public class CompressedGeometry
extends Geometry
The compressed geometry object is used to store geometry in a compressed format. Using compressed geometry reduces the amount of memory needed by a Java 3D application and increases the speed objects can be sent over the network. Once geometry decompression hardware support becomes available, increased rendering performance will also result from the use of compressed geometry.


Constructor Index

 o CompressedGeometry(CompressedGeometryHeader, byte[])
Creates a new CompressedGeometry NodeComponent object.

Method Index

 o decompress(Shape3D[])
Decompresses the compressed geometry.
 o getByteCount()
Returns the size, in bytes, of the compressed geometry buffer.
 o getCompressedGeometry(byte[])
Retrieves the compressed geometry associated with the CompressedGeometry NodeComponent object.
 o getCompressedGeometryHeader(CompressedGeometryHeader)
Copies the compressed geometry header from the CompressedGeometry NodeComponent into the passed in parameter.

Constructors

 o CompressedGeometry
 public CompressedGeometry(CompressedGeometryHeader hdr,
                           byte geometry[])
Creates a new CompressedGeometry NodeComponent object.

Parameters:
hdr - the compressed geometry header. This is copied into the CompressedGeometry NodeComponent.
geometry - the compressed geometry. The geometry must conform to the format descibed in Appendix B of the Java 3D API Specification.
See Also:
CompressedGeometryHeader

Methods

 o getByteCount
 public final int getByteCount()
Returns the size, in bytes, of the compressed geometry buffer. The size of the compressed geometry header is not included.

Returns:
the size, in bytes, of the compressed geometry buffer.
 o getCompressedGeometryHeader
 public final void getCompressedGeometryHeader(CompressedGeometryHeader hdr)
Copies the compressed geometry header from the CompressedGeometry NodeComponent into the passed in parameter.

Parameters:
hdr - the CompressedGeometryHeader object to copy the CompressedGeometry NodeComponent's header into.
See Also:
CompressedGeometryHeader
 o getCompressedGeometry
 public final void getCompressedGeometry(byte compressedGeometry[])
Retrieves the compressed geometry associated with the CompressedGeometry NodeComponent object. Copies the compressed geometry from the CompressedGeometry node into the given array.

Parameters:
compressedGeometry - the array to copy the compressed geometry into.
 o decompress
 public final void decompress(Shape3D decompressedGeometry[])
Decompresses the compressed geometry. Returns an array of Shape nodes containing the decompressed geometry objects.

Parameters:
decompressedGeometry - an array of Shape node containing the geometry decompressed from this CompressedGeometry NodeComponeent object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index