|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject
SceneGraphObject is a common superclass for all scene graph component objects. This includes Node, Geometry, Appearance, etc.
Constructor Summary | |
SceneGraphObject()
Constructs a SceneGraphObject with default parameters. |
Method Summary | |
void |
clearCapability(int bit)
Clear the specified capability bit. |
protected void |
duplicateSceneGraphObject(SceneGraphObject originalNode)
Copies all SceneGraphObject information from originalNode into
the current node. |
boolean |
getCapability(int bit)
Retrieves the specified capability bit. |
java.lang.Object |
getUserData()
Retrieves the userData field from this scene graph object. |
boolean |
isCompiled()
Returns a flag indicating whether the node is part of a scene graph that has been compiled. |
boolean |
isLive()
Returns a flag indicating whether the node is part of a live scene graph. |
void |
setCapability(int bit)
Sets the specified capability bit. |
void |
setUserData(java.lang.Object userData)
Sets the userData field associated with this scene graph object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SceneGraphObject()
Method Detail |
public final boolean getCapability(int bit)
bit
- the bit whose value is returnedpublic final void setCapability(int bit)
bit
- the bit to setpublic final void clearCapability(int bit)
bit
- the bit to clearpublic final boolean isCompiled()
public final boolean isLive()
public void setUserData(java.lang.Object userData)
userData
- a reference to the new userData fieldpublic java.lang.Object getUserData()
protected void duplicateSceneGraphObject(SceneGraphObject originalNode)
originalNode
into
the current node. This method is called from the
cloneNode
method which is, in turn, called by the
cloneTree
method.
originalNode
- the original node to duplicate.forceDuplicate
- when set to true
, causes the
duplicateOnCloneTree
flag to be ignored. When
false
, the value of each node's
duplicateOnCloneTree
variable determines whether
NodeComponent data is duplicated or copied.Group.cloneNode(boolean)
,
Node.duplicateNode(javax.media.j3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |