All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.SceneGraphObject
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
- public abstract class SceneGraphObject
- extends Object
SceneGraphObject is a common superclass for
all scene graph component objects. This includes Node,
Geometry, Appearance, etc.
-
SceneGraphObject()
- Constructs a new SceneGraphObject.
-
clearCapability(int)
- Clear the specified capability bit.
-
getCapability(int)
- Retrieves the specified capability bit.
-
getUserData()
- Retrieves the userData field from this scene graph object.
-
isCompiled()
- Returns a flag indicating whether the node is part of a scene graph
that has been compiled.
-
isLive()
- Returns a flag indicating whether the node is part of a live
scene graph.
-
setCapability(int)
- Sets the specified capability bit.
-
setUserData(Object)
- Sets the userData field associated with this scene graph object.
SceneGraphObject
public SceneGraphObject()
- Constructs a new SceneGraphObject.
getCapability
public final boolean getCapability(int bit)
- Retrieves the specified capability bit.
- Parameters:
- bit - the bit whose value is returned
- Returns:
- true if the bit is set, false if the bit is clear
setCapability
public final void setCapability(int bit)
- Sets the specified capability bit.
- Parameters:
- bit - the bit to set
- Throws: RestrictedAccessException
- if this object is part of live
or compiled scene graph
clearCapability
public final void clearCapability(int bit)
- Clear the specified capability bit.
- Parameters:
- bit - the bit to clear
- Throws: RestrictedAccessException
- if this object is part of live
or compiled scene graph
isCompiled
public final boolean isCompiled()
- Returns a flag indicating whether the node is part of a scene graph
that has been compiled. If so, then only those capabilities explicitly
allowed by the object's capability bits are allowed.
- Returns:
- true if node is part of a compiled scene graph, else false
isLive
public final boolean isLive()
- Returns a flag indicating whether the node is part of a live
scene graph.
- Returns:
- true if node is part of a live scene graph, else false
setUserData
public void setUserData(Object userData)
- Sets the userData field associated with this scene graph object.
The userData field is a reference to an arbitrary object
and may be used to store any user-specific data associated
with this scene graph object---it is not used by the Java 3D API.
If this object is cloned, the userData field is copied
to the newly cloned object.
- Parameters:
- userData - a reference to the new userData field
getUserData
public Object getUserData()
- Retrieves the userData field from this scene graph object.
- Returns:
- the current userData field
All Packages Class Hierarchy This Package Previous Next Index