org.xith3d.scenegraph.primitives
Class Disk

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.Disk
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode

public class Disk
extends Shape3D

A disk created by crushing/transforming a cone.
The disk will be parallel to the x/y plane.


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
Disk(float radius, int slices, Appearance app)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(float radius, int slices, org.openmali.vecmath2.Colorf color)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(float radius, int slices, int features, boolean colorAlpha, int texCoordsSize)
          A disk is created by crushing a cone.
Disk(float radius, int slices, java.lang.String texture)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(float radius, int slices, Texture texture)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(int slices, Appearance app)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(int slices, org.openmali.vecmath2.Colorf color)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(int slices, int features, boolean colorAlpha, int texCoordsSize)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(int slices, java.lang.String texture)
          Generates the Geometry of a disk parallel to the x/y plane.
Disk(int slices, Texture texture)
          Generates the Geometry of a disk parallel to the x/y plane.
 
Method Summary
static Geometry createGeometry(float radius, int slices, int features, boolean colorAlpha, int texCoordsSize)
           
static GeometryConstruct createGeometryConstructTA(float radius, int slices, int features, boolean colorAlpha, int texCoordsSize)
          Generates the Geometry of a disk parallel to the x/y plane.
static TriangleArray createGeometryTA(float radius, int slices, int features, boolean colorAlpha, int texCoordsSize)
          Generates the Geometry of a disk parallel to the x/y plane.
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, 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

Disk

public Disk(float radius,
            int slices,
            int features,
            boolean colorAlpha,
            int texCoordsSize)
A disk is created by crushing a cone.

Parameters:
radius - the Disk's radius
slices - number of slices for the Cone (e.g. 36)
features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...
colorAlpha -
texCoordsSize -

Disk

public Disk(int slices,
            int features,
            boolean colorAlpha,
            int texCoordsSize)
Generates the Geometry of a disk parallel to the x/y plane.

Parameters:
slices - number of slices for the Cone (e.g. 36)
features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...
colorAlpha -
texCoordsSize -

Disk

public Disk(float radius,
            int slices,
            Texture texture)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
radius - the Disk's radius
slices - Number of vertical stripes down the cone
texture - the Texture to apply to this Shape's Appearance

Disk

public Disk(int slices,
            Texture texture)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
texture - the Texture to apply to this Shape's Appearance
slices - Number of vertical stripes down the cone

Disk

public Disk(float radius,
            int slices,
            java.lang.String texture)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
radius - the Disk's radius
slices - Number of vertical stripes down the cone
texture - the Texture to apply to this Shape's Appearance

Disk

public Disk(int slices,
            java.lang.String texture)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
texture - the Texture to apply to this Shape's Appearance
slices - Number of vertical stripes down the cone

Disk

public Disk(float radius,
            int slices,
            org.openmali.vecmath2.Colorf color)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
radius - the Disk's radius
slices - Number of vertical stripes down the cone
color - the color to apply to this Shape's Appearance

Disk

public Disk(int slices,
            org.openmali.vecmath2.Colorf color)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
slices - Number of vertical stripes down the cone
color - the color to apply to this Shape's Appearance

Disk

public Disk(float radius,
            int slices,
            Appearance app)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
radius - the Disk's radius
slices - Number of vertical stripes down the cone
app - the Appearance to be applied to this Shape

Disk

public Disk(int slices,
            Appearance app)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
slices - Number of vertical stripes down the cone
app - the Appearance to be applied to this Shape
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 radius,
                                                          int slices,
                                                          int features,
                                                          boolean colorAlpha,
                                                          int texCoordsSize)
Generates the Geometry of a disk parallel to the x/y plane. Has unit radius.

Parameters:
radius - the Disk's radius
slices - Number of vertical stripes down the cone
features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...
colorAlpha -
texCoordsSize -

createGeometryTA

public static TriangleArray createGeometryTA(float radius,
                                             int slices,
                                             int features,
                                             boolean colorAlpha,
                                             int texCoordsSize)
Generates the Geometry of a disk parallel to the x/y plane. Has unit height and radius.

Parameters:
radius - the Disk's radius
slices - Number of vertical stripes down the cone
features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...
colorAlpha -
texCoordsSize -

createGeometry

public static Geometry createGeometry(float radius,
                                      int slices,
                                      int features,
                                      boolean colorAlpha,
                                      int texCoordsSize)