Xj3D VRML/X3D Code API

org.web3d.vrml.export.compressors
Interface NodeCompressor

All Known Subinterfaces:
SceneGraphCompressor
All Known Implementing Classes:
CoordinateCompressor, CoordinateInterpolatorCompressor, IndexedFaceSetCompressor, J3DIndexedFaceSetCompressor, J3DIndexedFaceSetCompressor_Indexed, NormalCompressor, OrientationInterpolatorCompressor, PositionInterpolatorCompressor, TestCompressor, TextureCoordinateCompressor

public interface NodeCompressor


Method Summary
 int[] compress(VRMLNodeType node)
          Compress the given Node.
 void decompress(int[] data)
          Decompress the data.
 void fillData(java.lang.String nodeName, BinaryContentHandler ch)
          Fill in the data handled by the compressor.
 java.lang.String getEncoderMetadata()
          Get any metadata the encoder would like to write to the file.
 boolean handleData(java.lang.String nodeName, java.lang.String fieldName)
          Checks whether this compressors handles this data.
 

Method Detail

compress

public int[] compress(VRMLNodeType node)
Compress the given Node.

Returns:
An int array for the geometry

decompress

public void decompress(int[] data)
Decompress the data.

Parameters:
data - The compressed data

handleData

public boolean handleData(java.lang.String nodeName,
                          java.lang.String fieldName)
Checks whether this compressors handles this data. If not then the data should be written to the stream.

Parameters:
nodeName - the node
fieldName - the field

fillData

public void fillData(java.lang.String nodeName,
                     BinaryContentHandler ch)
Fill in the data handled by the compressor.

Parameters:
nodeName - The nodeName

getEncoderMetadata

public java.lang.String getEncoderMetadata()
Get any metadata the encoder would like to write to the file.

Returns:
The metadata in X3D XML encoding

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium