class CompressionStreamNormal extends CompressionStreamElement
| Modifier and Type | Field and Description |
|---|---|
private static double[][][][] |
cgNormals |
private static short[][] |
inverseSine |
private static short |
MAX_SIN_14BIT |
private static int |
MAX_UV_BITS |
private static int |
MAX_UV_ENTRIES |
private static double |
MAX_Y_ANG |
private float |
normalX |
private float |
normalY |
private float |
normalZ |
(package private) int |
octant |
(package private) int |
sextant |
(package private) boolean |
specialNormal |
private int |
specialOctant |
private int |
specialSextant |
private int |
u |
(package private) int |
uAbsolute |
private static double |
UNITY_14 |
private int |
v |
(package private) int |
vAbsolute |
absolute, length, lengthMask, quantizationMask, shift| Constructor and Description |
|---|
CompressionStreamNormal(CompressionStream stream,
Vector3f normal)
Create a CompressionStreamNormal.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
computeInverseSineTables() |
private static void |
computeNormals() |
(package private) void |
outputCommand(HuffmanTable table,
CommandStream output)
Output a setNormal command.
|
private void |
outputNormal(HuffmanTable table,
CommandStream output,
int header,
int headerLength) |
(package private) void |
outputSubcommand(HuffmanTable table,
CommandStream output)
Output a normal subcommand.
|
(package private) void |
quantize(CompressionStream stream,
HuffmanTable huffmanTable)
Quantize the floating point normal to a 6-bit octant/sextant plus u,v
components of [0..6] bits.
|
java.lang.String |
toString() |
computeLengthShift, computeLengthShift, computeLengthShiftprivate int u
private int v
private int specialOctant
private int specialSextant
private float normalX
private float normalY
private float normalZ
int octant
int sextant
boolean specialNormal
int uAbsolute
int vAbsolute
private static final int MAX_UV_BITS
private static final int MAX_UV_ENTRIES
private static final double[][][][] cgNormals
private static final double MAX_Y_ANG
private static final double UNITY_14
private static final short[][] inverseSine
private static final short MAX_SIN_14BIT
CompressionStreamNormal(CompressionStream stream, Vector3f normal)
stream - CompressionStream associated with this elementnormal - floating-point representation to be encodedprivate static void computeNormals()
private static void computeInverseSineTables()
void 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 table, CommandStream output)
outputCommand in class CompressionStreamElementtable - HuffmanTable mapping quantized representations to
compressed encodingsoutput - CommandStream for collecting compressed outputvoid outputSubcommand(HuffmanTable table, CommandStream output)
table - HuffmanTable mapping quantized representations to
compressed encodingsoutput - CommandStream for collecting compressed outputprivate void outputNormal(HuffmanTable table, CommandStream output, int header, int headerLength)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.