| java.lang.Object com.sun.j3d.loaders.objectfile.ObjectFile org.jdesktop.j3d.examples.geometry_compression.ObjectFileCompressor
ObjectFileCompressor | public class ObjectFileCompressor extends ObjectFile (Code) | | This extension of ObjectFile provides the methods setQuantization() and
compress() to compress Wavefront .obj files into the format described by
appendix B of the Java 3D specification.
|
ObjectFileCompressor | public ObjectFileCompressor()(Code) | | |
ObjectFileCompressor | public ObjectFileCompressor(int flags)(Code) | | |
ObjectFileCompressor | public ObjectFileCompressor(int flags, float radians)(Code) | | |
compress | public CompressedGeometryData compress(String objFileName)(Code) | | Compress the specified .obj file into a CompressedGeometryData node
component.
Parameters: objFileName - String object representing the path to a .obj file a CompressedGeometryData node component |
compress | public void compress(String objFileName, CompressedGeometryFile file) throws IOException(Code) | | Compress the specified .obj file and add it to the end of an open
compressed geometry file.
Parameters: objFileName - String object representing the path to a .obj file Parameters: file - a currently open CompressedGeometryFile object exception: IOException - - if write fails |
compress | public CompressedGeometryData compress(Reader reader)(Code) | | Compress the specified .obj file into a CompressedGeometryData node
component.
Parameters: reader - an open .obj file a CompressedGeometryData node component |
compress | public void compress(Reader reader, CompressedGeometryFile file) throws IOException(Code) | | Compress the specified .obj file and add it to the end of an open
compressed geometry file.
Parameters: reader - an open .obj file Parameters: file - an open CompressedGeometryFile object exception: IOException - - if write fails |
compress | public CompressedGeometryData compress(URL url)(Code) | | Compress the specified .obj file into a CompressedGeometryData node
component.
Parameters: url - Uniform Resource Locator for the .obj file a CompressedGeometryData node component |
compress | public void compress(URL url, CompressedGeometryFile file) throws IOException(Code) | | Compress the specified .obj file and add it to the end of an open
compressed geometry file.
Parameters: url - Uniform Resource Locator for the .obj file Parameters: file - a currently open CompressedGeometryFile object exception: IOException - - if write fails |
setFlags | public void setFlags(int flags)(Code) | | |
setQuantization | public void setQuantization(int positionQuant, int colorQuant, int normalQuant)(Code) | | Set the position, normal, and color quantization values for compression.
Parameters: positionQuant - number of bits to quantize each position's X, Y,and Z components, ranging from 1 to 16 with a default of 10 Parameters: colorQuant - number of bits to quantize each color's R, G, B, andalpha components, ranging from 2 to 16 with a default of 8 Parameters: normalQuant - number of bits for quantizing each normal's U and Vcomponents, ranging from 0 to 6 with a default of 3 |
|
|