public class Torus extends Shape3D implements NodeUpdateListener
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.
bounds, implicitBounds, INVALID_BOUNDS, parentalive, LISTENER_SET_TIMING_ERR_PROP, updateHandlerCOLLIDABLE_OBJECT, GENERAL_OBJECT, PROXIMITY_OBJECT, VISIBLE_OBJECTCUSTOM_PICK_TYPE, GROUP_PICK_TYPE, LEAF_PICK_TYPE, SINGLE_PICK_TYPEAUDIO_CULLABLE, CLIP_CULLABLE, FOG_CULLABLE, GEOMETRY_CULLABLE, LIGHT_CULLABLE, OVERRIDE_CULLABLE| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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(Object src)
Notification that its safe to update the node now with any operations
that could potentially effect the node's bounds.
|
void |
updateNodeDataChanges(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.
|
checkForCyclicChild, checkPickMask, compareTo, compareTo, equals, equals, getAppearance, getAppearanceRenderable, getCenter, getCullableType, getGeometry, getGeometryRenderable, getPickableBounds, getPickableChild, getPickMask, getPickTargetType, getRenderable, is2D, isVisible, pickBatch, pickSingle, postRender, recomputeBounds, render, requestBoundsUpdate, setAppearance, setGeometry, setLive, setPickMask, setUpdateHandler, updateBoundsboundsChanged, checkForCyclicParent, getBounds, getParent, markBoundsDirty, removeParent, setBounds, setParent, updateParentBoundsdataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUserDataclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoundspublic 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 usepublic void updateNodeBoundsChanges(Object src)
updateNodeBoundsChanges in interface NodeUpdateListenersrc - The node or Node Component that is to be updated.public void updateNodeDataChanges(Object src)
updateNodeDataChanges in interface NodeUpdateListenersrc - 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
Copyright © 2001 - 2015 j3d.org