|
||||||||||
| 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.Hemisphere
public class Hemisphere
A sphere using standard specifications.
| 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 | |
|---|---|
Hemisphere(float radius,
int slices,
int stacks,
Appearance app)
Creates a hemisphere using standard specifications. |
|
Hemisphere(float radius,
int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
Creates a hemisphere using standard specifications. |
|
Hemisphere(float radius,
int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a hemisphere using standard specifications. |
|
Hemisphere(float radius,
int slices,
int stacks,
java.lang.String texture)
Creates a hemisphere using standard specifications. |
|
Hemisphere(float radius,
int slices,
int stacks,
Texture texture)
Creates a hemisphere using standard specifications. |
|
Hemisphere(int slices,
int stacks,
Appearance app)
Creates a hemisphere using standard specifications. |
|
Hemisphere(int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
Creates a hemisphere using standard specifications. |
|
Hemisphere(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a hemisphere using standard specifications. |
|
Hemisphere(int slices,
int stacks,
java.lang.String texture)
Creates a hemisphere using standard specifications. |
|
Hemisphere(int slices,
int stacks,
Texture texture)
Creates a hemisphere using standard specifications. |
|
| Method Summary | |
|---|---|
static GeometryArray |
createGeometry(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryArray for a Sphere. |
static GeometryConstruct |
createGeometryConstructITA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for an IndexedTriangleArray for a Raster Shape3D. |
static GeometryConstruct |
createGeometryConstructITSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GemetryConstruct for a Hemisphere. |
static GeometryConstruct |
createGeometryConstructTA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for a TriangleArray for a Raster Shape3D. |
static GeometryConstruct |
createGeometryConstructTSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a GeometryConstruct for a TriangleStripArray for a Raster Shape3D. |
static IndexedTriangleArray |
createGeometryITA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates an IndexedTriangleArray for a Hemisphere Shape3D. |
static IndexedTriangleStripArray |
createGeometryITSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
|
static TriangleArray |
createGeometryTA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a TriangleArray for a Hemisphere Shape3D. |
static TriangleStripArray |
createGeometryTSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a TriangleStripArray for a Hemisphere Shape3D. |
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 Hemisphere(int slices,
int stacks,
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]
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public Hemisphere(float radius,
int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
radius - amount to enlarge the sphere byslices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize - StaticTransform.scale(Shape3D, float)
public Hemisphere(float radius,
int slices,
int stacks,
Texture texture)
radius - amount to enlarge the sphere byslices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spheretexture - the texture to apply to the Sphere's Appearance
public Hemisphere(float radius,
int slices,
int stacks,
java.lang.String texture)
radius - amount to enlarge the sphere byslices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spheretexture - the texture to apply to the Sphere's Appearance
public Hemisphere(int slices,
int stacks,
Texture texture)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spheretexture - the texture to apply to the Sphere's Appearance
public Hemisphere(int slices,
int stacks,
java.lang.String texture)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spheretexture - the texture to apply to the Sphere's Appearance
public Hemisphere(int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherecolor - the color to apply to the Sphere's Appearance
public Hemisphere(float radius,
int slices,
int stacks,
org.openmali.vecmath2.Colorf color)
radius - amount to enlarge the sphere byslices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherecolor - the color to apply to the Sphere's Appearance
public Hemisphere(int slices,
int stacks,
Appearance app)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the sphereapp - the Appearance to be applied to this Shape
public Hemisphere(float radius,
int slices,
int stacks,
Appearance app)
radius - amount to enlarge the sphere byslices - Number of vertical stripes down the spherestacks - Number of stacked rings around the sphereapp - the Appearance to be applied to this Shape| Method Detail |
|---|
public static void setGeometryConstructionTypeHint(GeometryType hint)
hint - public static GeometryType getGeometryConstructionTypeHint()
public static GeometryConstruct createGeometryConstructITSA(int slices,
int stacks,
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 ]
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static IndexedTriangleStripArray createGeometryITSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
public static GeometryConstruct createGeometryConstructITA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static IndexedTriangleArray createGeometryITA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructTSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static TriangleStripArray createGeometryTSA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructTA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static TriangleArray createGeometryTA(int slices,
int stacks,
int features,
boolean colorAlpha,
int texCoordsSize)
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around the spherefeatures - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static GeometryArray createGeometry(int slices,
int stacks,
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 ]
slices - Number of vertical stripes down the spherestacks - Number of stacked rings around 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 | |||||||||