com.sun.j3d.utils.geometry.compression
Class CompressionStream.MeshReference

java.lang.Object
  extended by com.sun.j3d.utils.geometry.compression.CompressionStreamElement
      extended by com.sun.j3d.utils.geometry.compression.CompressionStream.MeshReference
Enclosing class:
CompressionStream

private class CompressionStream.MeshReference
extends CompressionStreamElement

Stream element that references the mesh buffer.


Field Summary
(package private)  int meshIndex
           
(package private)  int stripFlag
           
 
Fields inherited from class com.sun.j3d.utils.geometry.compression.CompressionStreamElement
absolute, length, lengthMask, quantizationMask, shift
 
Constructor Summary
CompressionStream.MeshReference(int stripFlag, int meshIndex)
           
 
Method Summary
(package private)  void outputCommand(HuffmanTable t, CommandStream outputBuffer)
          Outputs the compressed bits representing this stream element.
(package private)  void quantize(CompressionStream s, HuffmanTable t)
          Computes the quantized representation of this stream element.
 java.lang.String toString()
           
 
Methods inherited from class com.sun.j3d.utils.geometry.compression.CompressionStreamElement
computeLengthShift, computeLengthShift, computeLengthShift
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stripFlag

int stripFlag

meshIndex

int meshIndex
Constructor Detail

CompressionStream.MeshReference

CompressionStream.MeshReference(int stripFlag,
                                int meshIndex)
Method Detail

quantize

void quantize(CompressionStream s,
              HuffmanTable t)
Description copied from class: CompressionStreamElement
Computes the quantized representation of this stream element.

Specified by:
quantize in class CompressionStreamElement
Parameters:
s - CompressionStream associated with this element
t - HuffmanTable for collecting data about the quantized representation of this element

outputCommand

void outputCommand(HuffmanTable t,
                   CommandStream outputBuffer)
Description copied from class: CompressionStreamElement
Outputs the compressed bits representing this stream element. Some instances of CompressionStreamElement don't require an implementation and will inherit the stub provided here.

Overrides:
outputCommand in class CompressionStreamElement
Parameters:
t - HuffmanTable mapping quantized representations to compressed encodings
outputBuffer - CommandStream for collecting compressed output

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.