|
||||||||||
| 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.Cone
public class Cone
An open cone pointing in the +z direction. Has unit height and radius.
| 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 | |
|---|---|
Cone(float radius,
float height,
int slices,
Appearance app)
Generate an open cone pointing in the +z direction. |
|
Cone(float radius,
float height,
int slices,
org.openmali.vecmath2.Colorf color)
Generate an open cone pointing in the +z direction. |
|
Cone(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
Generate an open cone pointing in the +z direction. |
|
Cone(float radius,
float height,
int slices,
java.lang.String texture)
Generate an open cone pointing in the +z direction. |
|
Cone(float radius,
float height,
int slices,
Texture texture)
Generate an open cone pointing in the +z direction. |
|
Cone(int slices,
Appearance app)
Generate an open cone pointing in the +z direction. |
|
Cone(int slices,
org.openmali.vecmath2.Colorf color)
Generate an open cone pointing in the +z direction. |
|
Cone(int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
Generate an open cone pointing in the +z direction. |
|
Cone(int slices,
java.lang.String texture)
Generate an open cone pointing in the +z direction. |
|
Cone(int slices,
Texture texture)
Generate an open cone pointing in the +z direction. |
|
| Method Summary | |
|---|---|
static GeometryArray |
createGeometry(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryArray for a Sphere. |
static GeometryConstruct |
createGeometryConstructTA(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
Generate the GeometryConstruct for a TriangleArray to build a Cone pointing in the +y direction (with unit radius and length). |
static TriangleArray |
createGeometryTA(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
Generate a TriangleArray to build a Cone pointing in the +y direction (with unit radius and length). |
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 Cone(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the conefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public Cone(int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the conefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public Cone(float radius,
float height,
int slices,
Texture texture)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the conetexture - the Texture to apply to this Shape's Appearance
public Cone(int slices,
Texture texture)
slices - Number of vertical stripes down the conetexture - the Texture to apply to this Shape's Appearance
public Cone(float radius,
float height,
int slices,
java.lang.String texture)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the conetexture - the Texture to apply to this Shape's Appearance
public Cone(int slices,
java.lang.String texture)
slices - Number of vertical stripes down the conetexture - the Texture to apply to this Shape's Appearance
public Cone(float radius,
float height,
int slices,
org.openmali.vecmath2.Colorf color)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the conecolor - the color to apply to this Shape's Appearance
public Cone(int slices,
org.openmali.vecmath2.Colorf color)
slices - Number of vertical stripes down the conecolor - the color to apply to this Shape's Appearance
public Cone(float radius,
float height,
int slices,
Appearance app)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the coneapp - the Appearance to be applied to this Shape
public Cone(int slices,
Appearance app)
slices - Number of vertical stripes down the coneapp - 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(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the conefeatures - Generate the data for GeometryArray.NORMALS | GeometryArray.TEXTURE_COORDINATES_2 ...colorAlpha - texCoordsSize -
public static TriangleArray createGeometryTA(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the conefeatures - Generate the data for GeometryArray.NORMALS | GeometryArray.TEXTURE_COORDINATES_2 ...colorAlpha - texCoordsSize -
public static GeometryArray createGeometry(float radius,
float height,
int slices,
int features,
boolean colorAlpha,
int texCoordsSize)
Parametric equations: x = r * cos( theta ) * sin( phi ) y = r * sin( theta ) * sin( phi ) z = r * cos( phi ) over theta in [ 0, 2 * PI ] and phi in [ 0, PI ]
radius - the cone's base-radiusheight - the cone's heightslices - Number of vertical stripes down the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||