class CompressionStreamVertex extends CompressionStreamElement
| Modifier and Type | Field and Description |
|---|---|
(package private) CompressionStreamColor |
color |
private float |
floatX |
private float |
floatY |
private float |
floatZ |
private int |
meshFlag |
(package private) CompressionStreamNormal |
normal |
private int |
stripFlag |
private int |
X |
(package private) int |
xAbsolute |
private int |
Y |
(package private) int |
yAbsolute |
private int |
Z |
(package private) int |
zAbsolute |
absolute, length, lengthMask, quantizationMask, shift| Constructor and Description |
|---|
CompressionStreamVertex(CompressionStream stream,
Point3f p,
Vector3f n,
Color3f c,
int stripFlag,
int meshFlag)
Create a CompressionStreamVertex with the given parameters.
|
CompressionStreamVertex(CompressionStream stream,
Point3f p,
Vector3f n,
Color4f c,
int stripFlag,
int meshFlag)
Create a CompressionStreamVertex with the given parameters.
|
CompressionStreamVertex(CompressionStream stream,
Point3f p,
Vector3f n,
int stripFlag,
int meshFlag)
Create a CompressionStreamVertex with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
outputCommand(HuffmanTable huffmanTable,
CommandStream outputBuffer)
Output the final compressed bits to the compression command stream.
|
(package private) void |
quantize(CompressionStream stream,
HuffmanTable huffmanTable)
Quantize the floating point position to fixed point integer components
of the specified number of bits.
|
java.lang.String |
toString() |
computeLengthShift, computeLengthShift, computeLengthShiftprivate int X
private int Y
private int Z
private int meshFlag
private int stripFlag
private float floatX
private float floatY
private float floatZ
int xAbsolute
int yAbsolute
int zAbsolute
CompressionStreamColor color
CompressionStreamNormal normal
CompressionStreamVertex(CompressionStream stream, Point3f p, Vector3f n, Color3f c, int stripFlag, int meshFlag)
stream - CompressionStream associated with this vertexp - positionn - normal bundled with this vertex or null if not bundledc - color bundled with this vertex or null if not bundledstripFlag - CompressionStream.RESTART,
CompressionStream.REPLACE_OLDEST, or CompressionStream.REPLACE_MIDDLEmeshFlag - CompressionStream.MESH_PUSH or
CompressionStream.NO_MESH_PUSHCompressionStreamVertex(CompressionStream stream, Point3f p, Vector3f n, Color4f c, int stripFlag, int meshFlag)
stream - CompressionStream associated with this vertexp - positionn - normal bundled with this vertex or null if not bundledc - color bundled with this vertex or null if not bundledstripFlag - CompressionStream.RESTART,
CompressionStream.REPLACE_OLDEST, or CompressionStream.REPLACE_MIDDLEmeshFlag - CompressionStream.MESH_PUSH or
CompressionStream.NO_MESH_PUSHCompressionStreamVertex(CompressionStream stream, Point3f p, Vector3f n, int stripFlag, int meshFlag)
stream - CompressionStream associated with this vertexp - positionn - normal bundled with this vertex or null if not bundledstripFlag - CompressionStream.RESTART,
CompressionStream.REPLACE_OLDEST, or CompressionStream.REPLACE_MIDDLEmeshFlag - CompressionStream.MESH_PUSH or
CompressionStream.NO_MESH_PUSHvoid quantize(CompressionStream stream, HuffmanTable huffmanTable)
quantize in class CompressionStreamElementstream - CompressionStream associated with this elementtable - HuffmanTable for collecting data about the quantized
representation of this elementvoid outputCommand(HuffmanTable huffmanTable, CommandStream outputBuffer)
outputCommand in class CompressionStreamElementtable - HuffmanTable mapping quantized representations to
compressed encodingsoutput - CommandStream for collecting compressed outputpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.