|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.compression.CompressionStreamElement
com.sun.j3d.utils.compression.CompressionStreamVertex
class CompressionStreamVertex
This class represents a vertex in a compression stream. It maintains both floating-point and quantized representations of the vertex position along with meshing and vertex replacement flags for line and surface primitives. If normals or colors are bundled with geometry vertices then instances of this class will also contain references to normal or color stream elements.
Field Summary | |
---|---|
(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
|
Fields inherited from class com.sun.j3d.utils.compression.CompressionStreamElement |
---|
absolute, length, lengthMask, quantizationMask, shift |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
(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()
|
Methods inherited from class com.sun.j3d.utils.compression.CompressionStreamElement |
---|
computeLengthShift, computeLengthShift, computeLengthShift |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private 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
Constructor Detail |
---|
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_PUSHMethod Detail |
---|
void quantize(CompressionStream stream, HuffmanTable huffmanTable)
quantize
in class CompressionStreamElement
stream
- CompressionStream associated with this elementtable
- HuffmanTable for collecting data about the quantized
representation of this elementvoid outputCommand(HuffmanTable huffmanTable, CommandStream outputBuffer)
outputCommand
in class CompressionStreamElement
table
- HuffmanTable mapping quantized representations to
compressed encodingsoutput
- CommandStream for collecting compressed outputpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |