|
Aviatrix3D 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.Leaf
org.j3d.aviatrix3d.Shape3D
org.j3d.renderer.aviatrix3d.geom.Torus
A simple torus that uses triangle strips.
As we assume you may want to use this as a collidable object, we store the
GeometryData
instance that is used to create the object in the
userData of the underlying TriangleStripArray
.
The geometry does not have texture coordinates set.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.Node |
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Fields inherited from interface org.j3d.aviatrix3d.PickableObject |
COLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECT |
Constructor Summary | |
Torus()
Construct a default torus with no appearance set. |
|
Torus(Appearance app)
Construct a default torus with the given appearance. |
|
Torus(float innerRadius,
float outerRadius)
Construct a default torus with no appearance set. |
|
Torus(float innerRadius,
float outerRadius,
Appearance app)
Construct a default torus with the given appearance. |
|
Torus(float innerRadius,
float outerRadius,
int inner,
int outer,
Appearance app)
Construct a torus with all the values customisable. |
|
Torus(int inner,
int outer)
Construct a default torus with no appearance set and a custom number of faces. |
|
Torus(int inner,
int outer,
Appearance app)
Construct a default torus with the given appearance and a custom number of faces. |
Method Summary | |
void |
setDimensions(float innerRadius,
float outerRadius)
Change the radius and height of the torus to the new values. |
void |
setFacetCount(int inner,
int outer)
Set the facet count of the torus to the new value. |
void |
updateNodeBoundsChanges(java.lang.Object src)
Notification that its safe to update the node now with any operations that could potentially effect the node's bounds. |
void |
updateNodeDataChanges(java.lang.Object src)
Notification that its safe to update the node now with any operations that only change the node's properties, but do not change the bounds. |
Methods inherited from class org.j3d.aviatrix3d.Shape3D |
checkForCyclicChild, getAppearance, getGeometry, getPickMask, isVisible, markBoundsDirty, pickBatch, pickSingle, postRender, recomputeBounds, render, requestBoundsUpdate, setAppearance, setGeometry, setLive, setPickMask, setUpdateHandler, updateBounds |
Methods inherited from class org.j3d.aviatrix3d.Node |
boundsChanged, checkForCyclicParent, getBounds, getParent, removeParent, setBounds, setParent, updateParentBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
dataChanged, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Torus()
public Torus(Appearance app)
app
- The appearance to usepublic Torus(int inner, int outer)
inner
- The number of faces to use around the inner radiusouter
- The number of faces to use around the outer radiuspublic Torus(float innerRadius, float outerRadius)
innerRadius
- The inner radius of the torusouterRadius
- The outer radius of the toruspublic Torus(int inner, int outer, Appearance app)
inner
- The number of faces to use around the inner radiusouter
- The number of faces to use around the outer radiusapp
- The appearance to usepublic Torus(float innerRadius, float outerRadius, Appearance app)
innerRadius
- The inner radius of the torusouterRadius
- The outer radius of the torusapp
- The appearance to usepublic Torus(float innerRadius, float outerRadius, int inner, int outer, Appearance app)
innerRadius
- The inner radius of the torusouterRadius
- The outer radius of the torusinner
- The number of faces to use around the inner radiusouter
- The number of faces to use around the outer radiusapp
- The appearance to useMethod Detail |
public void updateNodeBoundsChanges(java.lang.Object src)
updateNodeBoundsChanges
in interface NodeUpdateListener
src
- The node or Node Component that is to be updated.public void updateNodeDataChanges(java.lang.Object src)
updateNodeDataChanges
in interface NodeUpdateListener
src
- The node or Node Component that is to be updated.public void setDimensions(float innerRadius, float outerRadius)
innerRadius
- The inner radius of the torusouterRadius
- The outer radius of the toruspublic void setFacetCount(int inner, int outer)
inner
- The number of faces to use around the inner radiusouter
- The number of faces to use around the outer radius
|
Aviatrix3D 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |