|
||||||||||
| 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.Torus
public class Torus
A sphere using standard specifications.
| 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 | |
|---|---|
Torus(float radius,
float alpha,
int radSlices,
int conSlices,
Appearance app)
Creates a torus. |
|
Torus(float radius,
float alpha,
int radSlices,
int conSlices,
org.openmali.vecmath2.Colorf color)
Creates a torus. |
|
Torus(float radius,
float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a torus. |
|
Torus(float radius,
float alpha,
int radSlices,
int conSlices,
java.lang.String texture)
Creates a torus. |
|
Torus(float radius,
float alpha,
int radSlices,
int conSlices,
Texture texture)
Creates a torus. |
|
Torus(float alpha,
int radSlices,
int conSlices,
Appearance app)
Creates a torus. |
|
Torus(float alpha,
int radSlices,
int conSlices,
org.openmali.vecmath2.Colorf color)
Creates a torus. |
|
Torus(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates a torus. |
|
Torus(float alpha,
int radSlices,
int conSlices,
java.lang.String texture)
Creates a torus. |
|
Torus(float alpha,
int radSlices,
int conSlices,
Texture texture)
Creates a torus. |
|
| Method Summary | |
|---|---|
static Geometry |
createGeometry(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryArray for a Torus. |
static GeometryConstruct |
createGeometryConstructITA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryConstruct for a Torus made of an IndexedTriangleArray. |
static GeometryConstruct |
createGeometryConstructITSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryConstruct for a Torus made of an IndexedTriangleStripArray. |
static GeometryConstruct |
createGeometryConstructTA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryConstruct for a Torus made of a TriangleArray. |
static GeometryConstruct |
createGeometryConstructTSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the GeometryConstruct for a Torus made of a TriangleStripArray. |
static IndexedTriangleArray |
createGeometryITA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the IndexedTriangleArray for a Torus. |
static IndexedTriangleStripArray |
createGeometryITSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the IndexedTriangleStripArray for a Torus. |
static TriangleArray |
createGeometryTA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the TriangleArray for a Torus. |
static TriangleStripArray |
createGeometryTSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
Creates the TriangleStripArray for a Torus. |
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, 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.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 |
|---|
public Torus(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public Torus(float radius,
float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
radius - the outer radius of the Torusalpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize - StaticTransform.scale(Shape3D, float)
public Torus(float alpha,
int radSlices,
int conSlices,
Texture texture)
alpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3texture - the Texture to be applied to the Shape's Appearance
public Torus(float radius,
float alpha,
int radSlices,
int conSlices,
Texture texture)
radius - the outer radius of the Torusalpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3texture - the Texture to be applied to the Shape's AppearanceStaticTransform.scale(Shape3D, float)
public Torus(float alpha,
int radSlices,
int conSlices,
java.lang.String texture)
alpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3texture - the Texture to be applied to the Shape's Appearance
public Torus(float radius,
float alpha,
int radSlices,
int conSlices,
java.lang.String texture)
radius - the outer radius of the Torusalpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3texture - the Texture to be applied to the Shape's AppearanceStaticTransform.scale(Shape3D, float)
public Torus(float alpha,
int radSlices,
int conSlices,
org.openmali.vecmath2.Colorf color)
alpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3color - the color to be applied to the Shape's Appearance's ColoringAttributes
public Torus(float radius,
float alpha,
int radSlices,
int conSlices,
org.openmali.vecmath2.Colorf color)
radius - the outer radius of the Torusalpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3color - the color to be applied to the Shape's Appearance's ColoringAttributesStaticTransform.scale(Shape3D, float)
public Torus(float alpha,
int radSlices,
int conSlices,
Appearance app)
alpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3app - the Appearance to be applied to this Shape
public Torus(float radius,
float alpha,
int radSlices,
int conSlices,
Appearance app)
radius - the outer radius of the Torusalpha - 0.5 for donut shape, 0.25 for a smaller holeradSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3app - the Appearance to be applied to this ShapeStaticTransform.scale(Shape3D, float)| Method Detail |
|---|
public static void setGeometryConstructionTypeHint(GeometryType hint)
hint - public static GeometryType getGeometryConstructionTypeHint()
public static GeometryConstruct createGeometryConstructITSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static IndexedTriangleStripArray createGeometryITSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.NORMALS | GeometryArray.TEXTURE_COORDINATES | ...colorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructITA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static IndexedTriangleArray createGeometryITA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructTSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static TriangleStripArray createGeometryTSA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static GeometryConstruct createGeometryConstructTA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static TriangleArray createGeometryTA(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - Generate the data for GeometryArray.COLOR_3 | GeometryArray.NORMALS | ...colorAlpha - texCoordsSize -
public static Geometry createGeometry(float alpha,
int radSlices,
int conSlices,
int features,
boolean colorAlpha,
int texCoordsSize)
alpha - Ratio of ring thickness to ring diameter (alpha=.5 -> donut shape)radSlices - Number of radial slices (from the center). Must be >=3conSlices - Number of concentric slices in the ring. Must be >=3features - 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 | |||||||||