Xj3D VRML/X3D Code API

org.web3d.vrml.export.compressors
Class GeometryHeader

java.lang.Object
  extended byorg.web3d.vrml.export.compressors.GeometryHeader

public class GeometryHeader
extends java.lang.Object

Header for compressed geometry.

Author:
Alan Hudson

Constructor Summary
GeometryHeader()
           
GeometryHeader(float scale, float[] bounds, boolean hasCoordinates, boolean hasNormals, boolean hasColors, boolean hasTexCoords)
           
 
Method Summary
 void decode(int[] buffer, int start)
          Dencode this header from a buffer.
 void encode(int[] buffer, int start)
          Encode this header into a buffer.
 float[] getBounds()
           
 float getScale()
           
static int getSize()
          Get the size of the header in ints.
 boolean hasNormals()
          Does this model contain normals.
 java.lang.String toString()
          Get a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeometryHeader

public GeometryHeader()

GeometryHeader

public GeometryHeader(float scale,
                      float[] bounds,
                      boolean hasCoordinates,
                      boolean hasNormals,
                      boolean hasColors,
                      boolean hasTexCoords)
Method Detail

getSize

public static int getSize()
Get the size of the header in ints. Right now this must be int aligned.


encode

public void encode(int[] buffer,
                   int start)
Encode this header into a buffer.

Parameters:
buffer - The buffer to encode to
start - The starting index to encode to

decode

public void decode(int[] buffer,
                   int start)
Dencode this header from a buffer.

Parameters:
buffer - The buffer to decode from
start - The starting index to decode from

hasNormals

public boolean hasNormals()
Does this model contain normals.

Returns:
Does it contain normals

getBounds

public float[] getBounds()

getScale

public float getScale()

toString

public java.lang.String toString()
Get a string representation.


Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium