org.xith3d.scenegraph.primitives
Class Cube

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
                      extended by org.xith3d.scenegraph.primitives.Cube
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode

public class Cube
extends Box

A simple Cube.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
Cube(Appearance app)
          Builds a Cube.
Cube(org.openmali.vecmath2.Colorf color)
          Builds a Cube.
Cube(float size)
          Builds a Cube.
Cube(float size, Appearance app)
          Builds a Cube.
Cube(float size, org.openmali.vecmath2.Colorf color)
          Builds a Cube.
Cube(float size, int features, boolean colorAlpha, int texCoordsSize)
          Builds a Cube.
Cube(float size, java.lang.String texture)
          Builds a Cube.
Cube(float size, Texture texture)
          Builds a Cube.
Cube(java.lang.String texture)
          Builds a Cube.
Cube(Texture texture)
          Builds a Cube.
 
Method Summary
static GeometryConstruct createGeometryConstructTA(float offsetX, float offsetY, float offsetZ, float size, int features, boolean colorAlpha, int texCoordsSize)
           
static GeometryConstruct createGeometryConstructTA(float size, int features, boolean colorAlpha, int texCoordsSize)
           
static TriangleArray createGeometryTA(float offsetX, float offsetY, float offsetZ, float size, int features, boolean colorAlpha, int texCoordsSize)
           
static TriangleArray createGeometryTA(float size, int features, boolean colorAlpha, int texCoordsSize)
           
 
Methods inherited from class org.xith3d.scenegraph.primitives.Box
createFromBoxBody, createFromBoxBody, createFromBoxBody, createFromBoxBody, createFromBoxBody, createGeometry, createGeometry, createGeometryConstructTA, createGeometryConstructTA, createGeometryTA, getGeometryConstructionTypeHint, setGeometryConstructionTypeHint
 
Methods inherited from class org.xith3d.scenegraph.Shape3D
absorbDetails, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, 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, setLive, 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

Cube

public Cube(float size,
            int features,
            boolean colorAlpha,
            int texCoordsSize)
Builds a Cube.

Parameters:
size -
features - GeomatryArray features

Cube

public Cube(float size)
Builds a Cube.

Parameters:
size -

Cube

public Cube(float size,
            Texture texture)
Builds a Cube.

Parameters:
size -
texture -

Cube

public Cube(Texture texture)
Builds a Cube.

Parameters:
texture -

Cube

public Cube(float size,
            java.lang.String texture)
Builds a Cube.

Parameters:
size -
texture -

Cube

public Cube(java.lang.String texture)
Builds a Cube.

Parameters:
texture -

Cube

public Cube(float size,
            org.openmali.vecmath2.Colorf color)
Builds a Cube.

Parameters:
size -
color -

Cube

public Cube(org.openmali.vecmath2.Colorf color)
Builds a Cube.

Parameters:
color -

Cube

public Cube(float size,
            Appearance app)
Builds a Cube.

Parameters:
size -
app -

Cube

public Cube(Appearance app)
Builds a Cube.

Parameters:
app -
Method Detail

createGeometryConstructTA

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

createGeometryConstructTA

public static GeometryConstruct createGeometryConstructTA(float size,
                                                          int features,
                                                          boolean colorAlpha,
                                                          int texCoordsSize)

createGeometryTA

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

createGeometryTA

public static TriangleArray createGeometryTA(float size,
                                             int features,
                                             boolean colorAlpha,
                                             int texCoordsSize)