org.xith3d.scenegraph.primitives
Class Box

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.Leaf
              extended by org.xith3d.scenegraph.Shape3D
                  extended by org.xith3d.scenegraph.primitives.Box
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode
Direct Known Subclasses:
Cube

public class Box
extends Shape3D

A simple Box.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
Box(float sizeX, float sizeY, float sizeZ, Appearance app)
          Builds a Box.
Box(float sizeX, float sizeY, float sizeZ, org.openmali.vecmath2.Colorf color)
          Builds a Box.
Box(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, Appearance app)
          Builds a Box.
Box(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, org.openmali.vecmath2.Colorf color)
          Builds a Box.
Box(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
          Builds a Box.
Box(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, java.lang.String texture)
          Builds a Box.
Box(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, Texture texture)
          Builds a Box.
Box(float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
          Builds a Box.
Box(float sizeX, float sizeY, float sizeZ, java.lang.String texture)
          Builds a Box.
Box(float sizeX, float sizeY, float sizeZ, Texture texture)
          Builds a Box.
Box(org.openmali.vecmath2.Tuple3f offset, float sizeX, float sizeY, float sizeZ, Appearance app)
          Builds a Box.
Box(org.openmali.vecmath2.Tuple3f offset, float sizeX, float sizeY, float sizeZ, org.openmali.vecmath2.Colorf color)
          Builds a Box.
Box(org.openmali.vecmath2.Tuple3f offset, float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
          Builds a Box.
Box(org.openmali.vecmath2.Tuple3f offset, float sizeX, float sizeY, float sizeZ, java.lang.String texture)
          Builds a Box.
Box(org.openmali.vecmath2.Tuple3f offset, float sizeX, float sizeY, float sizeZ, Texture texture)
          Builds a Box.
 
Method Summary
static Box createFromBoxBody(org.openmali.spatial.bodies.Box box, Appearance app)
          Builds a Box.
static Box createFromBoxBody(org.openmali.spatial.bodies.Box box, org.openmali.vecmath2.Colorf color)
          Builds a Box.
static Box createFromBoxBody(org.openmali.spatial.bodies.Box box, int features, boolean colorAlpha, int texCoordsSize)
          Builds a Box.
static Box createFromBoxBody(org.openmali.spatial.bodies.Box box, java.lang.String texture)
          Builds a Box.
static Box createFromBoxBody(org.openmali.spatial.bodies.Box box, Texture texture)
          Builds a Box.
static GeometryArray createGeometry(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
           
static GeometryArray createGeometry(float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
           
static GeometryConstruct createGeometryConstructTA(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
           
static GeometryConstruct createGeometryConstructTA(float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
           
static TriangleArray createGeometryTA(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, int features, boolean colorAlpha, int texCoordsSize)
           
static GeometryType getGeometryConstructionTypeHint()
           
static void setGeometryConstructionTypeHint(GeometryType hint)
          Sets the hint for this ShapeType's Geometry to be constructed of a certain type.
 
Methods inherited from class org.xith3d.scenegraph.Shape3D
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange
 
Methods inherited from class org.xith3d.scenegraph.Leaf
dump, getPickHost, setPickHost
 
Methods inherited from class org.xith3d.scenegraph.Node
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBoundsAutoCompute, setBoundsDirty, setBoundsDirtyUpward, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateOrderedChild, updateTransformGroup
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Box

public Box(float offsetX,
           float offsetY,
           float offsetZ,
           float sizeX,
           float sizeY,
           float sizeZ,
           int features,
           boolean colorAlpha,
           int texCoordsSize)
Builds a Box.

Parameters:
offsetX -
offsetY -
offsetZ -
sizeX -
sizeY -
sizeZ -
features - GeomatryArray features
colorAlpha -
texCoordsSize -

Box

public Box(org.openmali.vecmath2.Tuple3f offset,
           float sizeX,
           float sizeY,
           float sizeZ,
           int features,
           boolean colorAlpha,
           int texCoordsSize)
Builds a Box.

Parameters:
offset -
sizeX -
sizeY -
sizeZ -
features - GeomatryArray features
colorAlpha -
texCoordsSize -

Box

public Box(float sizeX,
           float sizeY,
           float sizeZ,
           int features,
           boolean colorAlpha,
           int texCoordsSize)
Builds a Box.

Parameters:
sizeX -
sizeY -
sizeZ -
features - GeomatryArray features
colorAlpha -
texCoordsSize -

Box

public Box(float offsetX,
           float offsetY,
           float offsetZ,
           float sizeX,
           float sizeY,
           float sizeZ,
           Texture texture)
Builds a Box.

Parameters:
offsetX -
offsetY -
offsetZ -
sizeX -
sizeY -
sizeZ -
texture -

Box

public Box(org.openmali.vecmath2.Tuple3f offset,
           float sizeX,
           float sizeY,
           float sizeZ,
           Texture texture)
Builds a Box.

Parameters:
offset -
sizeX -
sizeY -
sizeZ -
texture -

Box

public Box(float sizeX,
           float sizeY,
           float sizeZ,
           Texture texture)
Builds a Box.

Parameters:
sizeX -
sizeY -
sizeZ -
texture -

Box

public Box(float offsetX,
           float offsetY,
           float offsetZ,
           float sizeX,
           float sizeY,
           float sizeZ,
           java.lang.String texture)
Builds a Box.

Parameters:
offsetX -
offsetY -
offsetZ -
sizeX -
sizeY -
sizeZ -
texture -

Box

public Box(org.openmali.vecmath2.Tuple3f offset,
           float sizeX,
           float sizeY,
           float sizeZ,
           java.lang.String texture)
Builds a Box.

Parameters:
offset -
sizeX -
sizeY -
sizeZ -
texture -

Box

public Box(float sizeX,
           float sizeY,
           float sizeZ,
           java.lang.String texture)
Builds a Box.

Parameters:
sizeX -
sizeY -
sizeZ -
texture -

Box

public Box(float offsetX,
           float offsetY,
           float offsetZ,
           float sizeX,
           float sizeY,
           float sizeZ,
           org.openmali.vecmath2.Colorf color)
Builds a Box.

Parameters:
offsetX -
offsetY -
offsetZ -
sizeX -
sizeY -
sizeZ -
color -

Box

public Box(org.openmali.vecmath2.Tuple3f offset,
           float sizeX,
           float sizeY,
           float sizeZ,
           org.openmali.vecmath2.Colorf color)
Builds a Box.

Parameters:
offset -
sizeX -
sizeY -
sizeZ -
color -

Box

public Box(float sizeX,
           float sizeY,
           float sizeZ,
           org.openmali.vecmath2.Colorf color)
Builds a Box.

Parameters:
sizeX -
sizeY -
sizeZ -
color -

Box

public Box(float offsetX,
           float offsetY,
           float offsetZ,
           float sizeX,
           float sizeY,
           float sizeZ,
           Appearance app)
Builds a Box.

Parameters:
offsetX -
offsetY -
offsetZ -
sizeX -
sizeY -
sizeZ -
app -

Box

public Box(org.openmali.vecmath2.Tuple3f offset,
           float sizeX,
           float sizeY,
           float sizeZ,
           Appearance app)
Builds a Box.

Parameters:
offset -
sizeX -
sizeY -
sizeZ -
app -

Box

public Box(float sizeX,
           float sizeY,
           float sizeZ,
           Appearance app)
Builds a Box.

Parameters:
sizeX -
sizeY -
sizeZ -
app -
Method Detail

setGeometryConstructionTypeHint

public static void setGeometryConstructionTypeHint(GeometryType hint)
Sets the hint for this ShapeType's Geometry to be constructed of a certain type.

Parameters:
hint -

getGeometryConstructionTypeHint

public static GeometryType getGeometryConstructionTypeHint()
Returns:
the hint for this ShapeType's Geometry to be constructed of a certain type.

createGeometryConstructTA

public static GeometryConstruct createGeometryConstructTA(float offsetX,
                                                          float offsetY,
                                                          float offsetZ,
                                                          float sizeX,
                                                          float sizeY,
                                                          float sizeZ,
                                                          int features,
                                                          boolean colorAlpha,
                                                          int texCoordsSize)

createGeometryConstructTA

public static GeometryConstruct createGeometryConstructTA(float sizeX,
                                                          float sizeY,
                                                          float sizeZ,
                                                          int features,
                                                          boolean colorAlpha,
                                                          int texCoordsSize)

createGeometryTA

public static TriangleArray createGeometryTA(float offsetX,
                                             float offsetY,
                                             float offsetZ,
                                             float sizeX,
                                             float sizeY,
                                             float sizeZ,
                                             int features,
                                             boolean colorAlpha,
                                             int texCoordsSize)

createGeometry

public static GeometryArray createGeometry(float offsetX,
                                           float offsetY,
                                           float offsetZ,
                                           float sizeX,
                                           float sizeY,
                                           float sizeZ,
                                           int features,
                                           boolean colorAlpha,
                                           int texCoordsSize)

createGeometry

public static GeometryArray createGeometry(float sizeX,
                                           float sizeY,
                                           float sizeZ,
                                           int features,
                                           boolean colorAlpha,
                                           int texCoordsSize)

createFromBoxBody

public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
                                          int features,
                                          boolean colorAlpha,
                                          int texCoordsSize)
Builds a Box.

Parameters:
box - the box-body to create this scenegraph-box-primitive from
features - GeomatryArray features
colorAlpha -
texCoordsSize -

createFromBoxBody

public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
                                          Texture texture)
Builds a Box.

Parameters:
box - the box-body to create this scenegraph-box-primitive from
texture -

createFromBoxBody

public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
                                          java.lang.String texture)
Builds a Box.

Parameters:
box - the box-body to create this scenegraph-box-primitive from
texture -

createFromBoxBody

public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
                                          org.openmali.vecmath2.Colorf color)
Builds a Box.

Parameters:
box - the box-body to create this scenegraph-box-primitive from
color -

createFromBoxBody

public static final Box createFromBoxBody(org.openmali.spatial.bodies.Box box,
                                          Appearance app)
Builds a Box.

Parameters:
box - the box-body to create this scenegraph-box-primitive from
app -