com.vwp.j3d.utils.geometry
Class QuadBox

java.lang.Object
  extended by Shape3D
      extended by com.vwp.j3d.utils.geometry.QuadBox

public class QuadBox
extends Shape3D

This class is a replacement for Suns com.sun.j3d.utils.Box class. It creates A Box with only one Geometry object using quads instead of triangles. This should improve the performance on OpenGL / GLX systems.


Field Summary
static int ENABLE_APPEARANCE_MODIFY
           
static int ENABLE_PICK_REPORTING
           
static int GENERATE_NORMALS
           
static int GENERATE_NORMALS_INWARD
           
static int GENERATE_TEXTURE_COORDS
           
 float xdim
           
 float ydim
           
 float zdim
           
 
Constructor Summary
QuadBox()
          The default constructor.
QuadBox(float xdim, float ydim, float zdim, Appearance ap)
          QuadBox constructor
QuadBox(float xdim, float ydim, float zdim, int flags, Appearance ap)
          QuadBox constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATE_NORMALS

public static final int GENERATE_NORMALS

GENERATE_NORMALS_INWARD

public static final int GENERATE_NORMALS_INWARD

ENABLE_APPEARANCE_MODIFY

public static final int ENABLE_APPEARANCE_MODIFY

ENABLE_PICK_REPORTING

public static final int ENABLE_PICK_REPORTING

GENERATE_TEXTURE_COORDS

public static final int GENERATE_TEXTURE_COORDS

xdim

public float xdim

ydim

public float ydim

zdim

public float zdim
Constructor Detail

QuadBox

public QuadBox()
The default constructor. It creates a 1x1x1 m white QuadBox.


QuadBox

public QuadBox(float xdim,
               float ydim,
               float zdim,
               Appearance ap)
QuadBox constructor

Parameters:
xdim - width of the QuadBox
ydim - height of the QuadBox
zdim - depth of the QuadBox
ap - Appearance of the QuadBox which has to be generated

QuadBox

public QuadBox(float xdim,
               float ydim,
               float zdim,
               int flags,
               Appearance ap)
QuadBox constructor

Parameters:
xdim - width of the QuadBox
ydim - height of the QuadBox
zdim - depth of the QuadBox
flags - specifies some properties of the QuadBox object, for more information please refer the flag values taken from @Box
ap - Appearance of the QuadBox which has to be generated