com.vwp.j3d.utils.geometry
Class QuadBox
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Shape3D
com.vwp.j3d.utils.geometry.QuadBox
public class QuadBox
- extends javax.media.j3d.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.
| Fields inherited from class javax.media.j3d.Shape3D |
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE |
| Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING |
|
Constructor Summary |
QuadBox()
The default constructor. |
QuadBox(float xdim,
float ydim,
float zdim,
javax.media.j3d.Appearance ap)
QuadBox constructor |
QuadBox(float xdim,
float ydim,
float zdim,
int flags,
javax.media.j3d.Appearance ap)
QuadBox constructor |
| Methods inherited from class javax.media.j3d.Shape3D |
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry |
| Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
GENERATE_NORMALS
public static final int GENERATE_NORMALS
- See Also:
- Constant Field Values
GENERATE_NORMALS_INWARD
public static final int GENERATE_NORMALS_INWARD
- See Also:
- Constant Field Values
ENABLE_APPEARANCE_MODIFY
public static final int ENABLE_APPEARANCE_MODIFY
- See Also:
- Constant Field Values
ENABLE_PICK_REPORTING
public static final int ENABLE_PICK_REPORTING
- See Also:
- Constant Field Values
GENERATE_TEXTURE_COORDS
public static final int GENERATE_TEXTURE_COORDS
- See Also:
- Constant Field Values
xdim
public float xdim
ydim
public float ydim
zdim
public float zdim
QuadBox
public QuadBox()
- The default constructor. It creates a 1x1x1 m white QuadBox.
QuadBox
public QuadBox(float xdim,
float ydim,
float zdim,
javax.media.j3d.Appearance ap)
- QuadBox constructor
- Parameters:
xdim - width of the QuadBoxydim - height of the QuadBoxzdim - depth of the QuadBoxap - Appearance of the QuadBox which has to be generated
QuadBox
public QuadBox(float xdim,
float ydim,
float zdim,
int flags,
javax.media.j3d.Appearance ap)
- QuadBox constructor
- Parameters:
xdim - width of the QuadBoxydim - height of the QuadBoxzdim - depth of the QuadBoxflags - specifies some properties of the QuadBox object, for more
information please refer the flag values taken from @Boxap - Appearance of the QuadBox which has to be generated