|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.scenegraph.primitives.Capsule
public class Capsule
A simple Capsule Shape3D.
The length of the Capsule is the length of the body (without the caps).
The radius is the radius of the body and the caps.
| 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 | |
|---|---|
Capsule(float radius,
float length,
int slices,
int stacks,
Appearance app)
Creates a capsule using standard specifications. |
|
Capsule(float radius,
float length,
int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
Creates a capsule using standard specifications. |
|
Capsule(float radius,
float length,
int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a capsule using standard specifications. |
|
Capsule(float radius,
float length,
int slices,
int stacks,
java.lang.String texture)
Creates a capsule using standard specifications. |
|
Capsule(float radius,
float length,
int slices,
int stacks,
Texture texture)
Creates a capsule using standard specifications. |
|
Capsule(int slices,
int stacks,
Appearance app)
Creates a capsule using standard specifications. |
|
Capsule(int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
Creates a capsule using standard specifications. |
|
Capsule(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a capsule using standard specifications. |
|
Capsule(int slices,
int stacks,
java.lang.String texture)
Creates a capsule using standard specifications. |
|
Capsule(int slices,
int stacks,
Texture texture)
Creates a capsule using standard specifications. |
|
| Method Summary | |
|---|---|
static GeometryArray |
createGeometry(int slices,
int stacks,
float radius,
float length,
int features,
boolean colorAlpha,
int texCoordsSize)
|
static GeometryConstruct |
createGeometryConstructTA(int slices,
int stacks,
float radius,
float length,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryConstruct for a Capsule. |
static TriangleArray |
createGeometryTA(int slices,
int stacks,
float radius,
float length,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the Geometry for a Capsule. |
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.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 |
|---|
public Capsule(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public Capsule(float radius,
float length,
int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
radius - the radius of the capsulelength - the length of the body Cylinderslices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public Capsule(float radius,
float length,
int slices,
int stacks,
Texture texture)
radius - the radius of the capsulelength - the length of the body Cylinderslices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.texture - the texture to apply to the Sphere's Appearance
public Capsule(int slices,
int stacks,
Texture texture)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.texture - the texture to apply to the Sphere's Appearance
public Capsule(float radius,
float length,
int slices,
int stacks,
java.lang.String texture)
radius - the radius of the capsulelength - the length of the body Cylinderslices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.texture - the texture to apply to the Sphere's Appearance
public Capsule(int slices,
int stacks,
java.lang.String texture)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.texture - the texture to apply to the Sphere's Appearance
public Capsule(float radius,
float length,
int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
radius - the radius of the capsulelength - the length of the body Cylinderslices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.color - the color to apply to the Sphere's Appearance
public Capsule(int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.color - the color to apply to the Sphere's Appearance
public Capsule(float radius,
float length,
int slices,
int stacks,
Appearance app)
radius - the radius of the capsulelength - the length of the body Cylinderslices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.app - the Appearance to be applied to this Shape
public Capsule(int slices,
int stacks,
Appearance app)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.app - the Appearance to be applied to this Shape| Method Detail |
|---|
public static void setGeometryConstructionTypeHint(GeometryType hint)
hint - public static GeometryType getGeometryConstructionTypeHint()
public static GeometryConstruct createGeometryConstructTA(int slices,
int stacks,
float radius,
float length,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.radius - the radius of the capsulelength - the length of the body Cylinderfeatures - the Geometry featurescolorAlpha - texCoordsSize -
public static TriangleArray createGeometryTA(int slices,
int stacks,
float radius,
float length,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - the slices of the cap Hemispheres and the body Cylinderstacks - the stacks of each cap Hemisphere.radius - the radius of the capsulelength - the length of the body Cylinderfeatures - the Geometry featurescolorAlpha - texCoordsSize -
public static GeometryArray createGeometry(int slices,
int stacks,
float radius,
float length,
int features,
boolean colorAlpha,
int texCoordsSize)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||