| java.lang.Object javax.media.j3d.GeometryDecompressor javax.media.j3d.GeometryDecompressorRetained
GeometryDecompressorRetained | class GeometryDecompressorRetained extends GeometryDecompressor (Code) | | This class implements a retained geometry backend for the abstract
GeometryDecompressor.
|
Method Summary | |
GeometryRetained | decompress(CompressedGeometryRetained cgr) Decompress the geometry data in a CompressedGeometryRetained. | void | getBoundingBox(BoundingBox bb) Get the bounds of the decompressed geometry. | void | outputColor(Color4f color) Any global colors output by the decompressor are stored as per-vertex
color in the retained data used internally by the renderer. | void | outputNormal(Vector3f normal) Set the current normal that will be copied to each succeeding vertex
output by the decompressor. | void | outputVertex(Point3f position, Vector3f normal, Color4f color, int vertexReplaceCode) Process a decompressed vertex. | void | outputVertexFormat(boolean bundlingNorm, boolean bundlingColor, boolean doingAlpha) Initialize the vertex output list based on the vertex format provided
by the SetState decompression command. | void | setDecompressBoundsOnly(boolean boundsOnly) If the given argument is true, sets the decompressor to output only the
bounding box of the decompressed geometry. | void | setDecompressPositionsOnly(boolean positionsOnly) If the given argument is true, sets the decompressor to output only the
decompressed positions, their connections, and the bounding box. |
decompress | GeometryRetained decompress(CompressedGeometryRetained cgr)(Code) | | Decompress the geometry data in a CompressedGeometryRetained. The
GeometryArray output is intended to be cached as retained data for
efficient rendering. Global color and normal changes output by the
decompressor are stored as redundant per-vertex data so that a single
GeometryArray can be used.
Since only one GeometryArray is created, if the bundling attributes
change while building the vertex list then the decompression is
aborted. There should be only one SetState bundling attribute command
per CompressedGeometry.
Parameters: cgr - CompressedGeometryRetained containing compressed geometry GeometryArrayRetained containing the results of thedecompression, or null if only the bounds are computed. |
getBoundingBox | void getBoundingBox(BoundingBox bb)(Code) | | Get the bounds of the decompressed geometry.
Parameters: bb - BoundingBox to receive bounds |
outputColor | void outputColor(Color4f color)(Code) | | Any global colors output by the decompressor are stored as per-vertex
color in the retained data used internally by the renderer. This is
done for performance and simplicity reasons, at the expense of
replicating colors.
The next method sets the current color that will be copied to each
succeeding vertex. The outputColor() method is never called if
colors are bundled with each vertex in the compressed buffer.
|
outputNormal | void outputNormal(Vector3f normal)(Code) | | Set the current normal that will be copied to each succeeding vertex
output by the decompressor. The per-vertex copy is always needed since
in Java 3D a normal is always associated with a vertex. This is never
called if normals are bundled with each vertex in the compressed
buffer.
|
outputVertex | void outputVertex(Point3f position, Vector3f normal, Color4f color, int vertexReplaceCode)(Code) | | Process a decompressed vertex.
|
outputVertexFormat | void outputVertexFormat(boolean bundlingNorm, boolean bundlingColor, boolean doingAlpha)(Code) | | Initialize the vertex output list based on the vertex format provided
by the SetState decompression command.
|
setDecompressBoundsOnly | void setDecompressBoundsOnly(boolean boundsOnly)(Code) | | If the given argument is true, sets the decompressor to output only the
bounding box of the decompressed geometry.
Parameters: boundsOnly - set to true if the decompressor should output only thegeometric bounding box. |
setDecompressPositionsOnly | void setDecompressPositionsOnly(boolean positionsOnly)(Code) | | If the given argument is true, sets the decompressor to output only the
decompressed positions, their connections, and the bounding box.
Parameters: positionsOnly - set to true if the decompressor should output onlyposition, connection, and bounding box data. |
Methods inherited from javax.media.j3d.GeometryDecompressor | boolean checkVersion(int majorVersionNumber, int minorVersionNumber)(Code)(Java Doc) void decompress(int start, int length, byte data)(Code)(Java Doc) abstract void outputColor(Color4f color)(Code)(Java Doc) abstract void outputNormal(Vector3f normal)(Code)(Java Doc) abstract void outputVertex(Point3f position, Vector3f normal, Color4f color, int vertexReplaceCode)(Code)(Java Doc) abstract void outputVertexFormat(boolean bundlingNorm, boolean bundlingColor, boolean doingAlpha)(Code)(Java Doc)
|
|
|