org.xith3d.scenegraph.primitives
Class Ellipsoid

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

public class Ellipsoid
extends Shape3D

An ellipsoid using the stacks/slices specification.


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
Ellipsoid(float rx, float ry, float rz, int slices, int stacks, Appearance app)
          Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles
Ellipsoid(float rx, float ry, float rz, int slices, int stacks, org.openmali.vecmath2.Colorf color)
          Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles
Ellipsoid(float rx, float ry, float rz, int slices, int stacks, int features, boolean colorAlpha, int texCoordsSize)
          Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles
Ellipsoid(float rx, float ry, float rz, int slices, int stacks, java.lang.String texture)
          Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles
Ellipsoid(float rx, float ry, float rz, int slices, int stacks, Texture texture)
          Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles
 
Method Summary
 
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

Ellipsoid

public Ellipsoid(float rx,
                 float ry,
                 float rz,
                 int slices,
                 int stacks,
                 int features,
                 boolean colorAlpha,
                 int texCoordsSize)
Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles

Parameters:
rx - Radius along x axis
ry - Radius along y axis
rz - Radius along z axis
slices - Number of vertical stripes down the ellipsoid
stacks - Number of stacked rings around the ellipsoid
features - the GeometryArray features
colorAlpha -
texCoordsSize -

Ellipsoid

public Ellipsoid(float rx,
                 float ry,
                 float rz,
                 int slices,
                 int stacks,
                 Texture texture)
Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles

Parameters:
rx - Radius along x axis
ry - Radius along y axis
rz - Radius along z axis
slices - Number of vertical stripes down the ellipsoid
stacks - Number of stacked rings around the ellipsoid
texture - the Texture to be applied to this Shape's Appearance

Ellipsoid

public Ellipsoid(float rx,
                 float ry,
                 float rz,
                 int slices,
                 int stacks,
                 java.lang.String texture)
Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles

Parameters:
rx - Radius along x axis
ry - Radius along y axis
rz - Radius along z axis
slices - Number of vertical stripes down the ellipsoid
stacks - Number of stacked rings around the ellipsoid
texture - the Texture to be applied to this Shape's Appearance

Ellipsoid

public Ellipsoid(float rx,
                 float ry,
                 float rz,
                 int slices,
                 int stacks,
                 org.openmali.vecmath2.Colorf color)
Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles

Parameters:
rx - Radius along x axis
ry - Radius along y axis
rz - Radius along z axis
slices - Number of vertical stripes down the ellipsoid
stacks - Number of stacked rings around the ellipsoid
color - the color to be applied to this Shape's Appearance's ColoringAttributes

Ellipsoid

public Ellipsoid(float rx,
                 float ry,
                 float rz,
                 int slices,
                 int stacks,
                 Appearance app)
Create an ellipsoid using the stacks/slices specification Creates 2*slices*(stacks-1) triangles

Parameters:
rx - Radius along x axis
ry - Radius along y axis
rz - Radius along z axis
slices - Number of vertical stripes down the ellipsoid
stacks - Number of stacked rings around the ellipsoid
app - the Appearance to be applide to this Shape