|
||||||||||
| 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.MultiShape3D
public class MultiShape3D
This is a Shape3D extension, that allows you to use multiple Geometries and
Appearances for, of which only one set is active at a time.
This is comparable to a Switch node, but is more efficient for this task.
| 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 | |
|---|---|
MultiShape3D()
Constructs a new Shape3D object with a null geometry component and a null appearance component. |
|
MultiShape3D(Geometry geometry)
Constructs a new Shape3D object with specified geometry component and a null appearance component. |
|
MultiShape3D(Geometry geometry,
Appearance appearance)
Constructs a new Shape3D object with specified geometry and appearance components. |
|
| Method Summary | |
|---|---|
void |
addUnit(Geometry geometry,
Appearance appearance)
Adds an unnamed Shape-unit to the MultiShape3D. |
void |
addUnit(java.lang.String name,
Geometry geometry,
Appearance appearance)
Adds a named Shape-unit to the MultiShape3D. |
int |
getActiveUnit()
|
java.lang.String |
getActiveUnitName()
|
int |
getNumberOfUnits()
|
java.util.List<java.lang.String> |
getUnits()
|
void |
setActiveUnit(int index)
Sets the active unit. |
void |
setActiveUnit(java.lang.String name)
Sets the active unit. |
void |
setModListener(ScenegraphModificationsListener modListener)
|
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, 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 MultiShape3D(Geometry geometry,
Appearance appearance)
public MultiShape3D(Geometry geometry)
public MultiShape3D()
| Method Detail |
|---|
public final java.util.List<java.lang.String> getUnits()
public final int getNumberOfUnits()
public final int getActiveUnit()
public final java.lang.String getActiveUnitName()
public void setActiveUnit(int index)
index - public void setActiveUnit(java.lang.String name)
name -
public void addUnit(java.lang.String name,
Geometry geometry,
Appearance appearance)
name - geometry - appearance -
public void addUnit(Geometry geometry,
Appearance appearance)
geometry - appearance - public void setModListener(ScenegraphModificationsListener modListener)
setModListener in class Shape3D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||