org.xith3d.scenegraph.primitives
Class Ring

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

public class Ring
extends Cylinder

A ring created by crushing a cylinder.


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
Ring(float radius, float alpha, int slices, Appearance app)
          A ring is created by crushing a cylinder.
Ring(float radius, float alpha, int slices, org.openmali.vecmath2.Colorf color)
          A ring is created by crushing a cylinder.
Ring(float radius, float alpha, int slices, int features, boolean colorAlpha, int texCoordsSize)
          A ring is created by crushing a cylinder.
Ring(float radius, float alpha, int slices, java.lang.String texture)
          A ring is created by crushing a cylinder.
Ring(float radius, float alpha, int slices, Texture texture)
          A ring is created by crushing a cylinder.
Ring(float alpha, int slices, Appearance app)
          A ring is created by crushing a cylinder.
Ring(float alpha, int slices, org.openmali.vecmath2.Colorf color)
          A ring is created by crushing a cylinder.
Ring(float alpha, int slices, int features, boolean colorAlpha, int texCoordsSize)
          A ring is created by crushing a cylinder.
Ring(float alpha, int slices, java.lang.String texture)
          A ring is created by crushing a cylinder.
Ring(float alpha, int slices, Texture texture)
          A ring is created by crushing a cylinder.
 
Method Summary
 
Methods inherited from class org.xith3d.scenegraph.primitives.Cylinder
createGeometry, createGeometryConstructITA, createGeometryConstructITSA, createGeometryConstructTA, createGeometryITA, createGeometryITSA, 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

Ring

public Ring(float alpha,
            int slices,
            int features,
            boolean colorAlpha,
            int texCoordsSize)
A ring is created by crushing a cylinder.

Parameters:
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...
colorAlpha -
texCoordsSize -

Ring

public Ring(float radius,
            float alpha,
            int slices,
            int features,
            boolean colorAlpha,
            int texCoordsSize)
A ring is created by crushing a cylinder.

Parameters:
radius - the ring's radius
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...
colorAlpha -
texCoordsSize -

Ring

public Ring(float alpha,
            int slices,
            Texture texture)
A ring is created by crushing a cylinder.

Parameters:
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
texture - the Texture to be applied to the Shape's Appearance

Ring

public Ring(float radius,
            float alpha,
            int slices,
            Texture texture)
A ring is created by crushing a cylinder.

Parameters:
radius - the ring's radius
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
texture - the Texture to be applied to the Shape's Appearance

Ring

public Ring(float alpha,
            int slices,
            java.lang.String texture)
A ring is created by crushing a cylinder.

Parameters:
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
texture - the Texture to be applied to the Shape's Appearance

Ring

public Ring(float radius,
            float alpha,
            int slices,
            java.lang.String texture)
A ring is created by crushing a cylinder.

Parameters:
radius - the ring's radius
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
texture - the Texture to be applied to the Shape's Appearance

Ring

public Ring(float alpha,
            int slices,
            org.openmali.vecmath2.Colorf color)
A ring is created by crushing a cylinder.

Parameters:
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
color - the color to be applied to the ColoringAttributes of the Shape's Appearance

Ring

public Ring(float radius,
            float alpha,
            int slices,
            org.openmali.vecmath2.Colorf color)
A ring is created by crushing a cylinder.

Parameters:
radius - the ring's radius
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
color - the color to be applied to the ColoringAttributes of the Shape's Appearance

Ring

public Ring(float alpha,
            int slices,
            Appearance app)
A ring is created by crushing a cylinder.

Parameters:
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
app - the Appearance to be applied to this shape

Ring

public Ring(float radius,
            float alpha,
            int slices,
            Appearance app)
A ring is created by crushing a cylinder.

Parameters:
radius - the ring's radius
alpha - ratio of inner radius to outer radius
slices - number of slices for the Cylinder (e.g. 36)
app - the Appearance to be applied to this shape