| java.lang.Object javax.media.j3d.GeometryDecompressor
All known Subclasses: javax.media.j3d.GeometryDecompressorRetained, javax.media.j3d.GeometryDecompressorShape3D,
GeometryDecompressor | abstract class GeometryDecompressor (Code) | | This abstract class provides the base methods needed to create a geometry
decompressor. Subclasses must implement a backend to handle the output,
consisting of a generalized triangle strip, line strip, or point array,
along with possible global color and normal changes.
|
Inner Class :static class HuffmanTableEntry | |
Inner Class :static class MeshBufferEntry | |
Method Summary | |
boolean | checkVersion(int majorVersionNumber, int minorVersionNumber) Check version numbers and return true if compatible. | void | decompress(int start, int length, byte data) Decompress data and invoke abstract output methods. | abstract void | outputColor(Color4f color) This method captures the global color output of the decompressor. | abstract void | outputNormal(Vector3f normal) This method captures the global normal output of the decompressor. | abstract void | outputVertex(Point3f position, Vector3f normal, Color4f color, int vertexReplaceCode) This method captures the vertex output of the decompressor. | abstract void | outputVertexFormat(boolean bundlingNorm, boolean bundlingColor, boolean doingAlpha) This method is called when a SetState command is encountered in the
decompression stream. |
majorVersionNumber | final static int majorVersionNumber(Code) | | Compressed geometry format version supported.
|
minorMinorVersionNumber | final static int minorMinorVersionNumber(Code) | | |
minorVersionNumber | final static int minorVersionNumber(Code) | | |
GeometryDecompressor | GeometryDecompressor()(Code) | | |
checkVersion | boolean checkVersion(int majorVersionNumber, int minorVersionNumber)(Code) | | Check version numbers and return true if compatible.
|
decompress | void decompress(int start, int length, byte data)(Code) | | Decompress data and invoke abstract output methods.
Parameters: start - byte offset to start of compressed geometry in data array Parameters: length - size of compressed geometry in bytes Parameters: data - array containing compressed geometry buffer of thespecified length at the given offset from the start of the array exception: ArrayIndexOutOfBoundsException - if start+length > data size |
outputColor | abstract void outputColor(Color4f color)(Code) | | This method captures the global color output of the decompressor. It
is only invoked if colors are not bundled with the vertex data. The
global color applies to all succeeding vertices until the next time the
method is invoked.
Parameters: color - The current global color. |
outputNormal | abstract void outputNormal(Vector3f normal)(Code) | | This method captures the global normal output of the decompressor. It
is only invoked if normals are not bundled with the vertex data. The
global normal applies to all succeeding vertices until the next time the
method is invoked.
Parameters: normal - The current global normal. |
outputVertex | abstract void outputVertex(Point3f position, Vector3f normal, Color4f color, int vertexReplaceCode)(Code) | | This method captures the vertex output of the decompressor. The normal
or color references may be null if the corresponding data is not
bundled with the vertices in the compressed geometry buffer. Alpha
values may be included in the color.
Parameters: position - The coordinates of the vertex. Parameters: normal - The normal bundled with the vertex. May be null. Parameters: color - The color bundled with the vertex. May be null. Alpha may be present. Parameters: vertexReplaceCode - Specifies the generalized strip flagthat is bundled with each vertex. See Also: GeneralizedStripFlags See Also: CompressedGeometryHeader |
outputVertexFormat | abstract void outputVertexFormat(boolean bundlingNorm, boolean bundlingColor, boolean doingAlpha)(Code) | | This method is called when a SetState command is encountered in the
decompression stream.
Parameters: bundlingNorm - true indicates normals are bundled with vertices Parameters: bundlingColor - true indicates colors are bundled with vertices Parameters: doingAlpha - true indicates alpha values are bundled with vertices |
|
|