|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
The SceneGraphObject is a common superclass for all scene graph objects.
Field Summary | |
protected boolean |
alive
Current live state of the object |
protected NodeUpdateHandler |
updateHandler
The scene this node belongs to |
protected static java.lang.String |
WRITE_TIMING_MSG
Message when the user attempts to write a value to the node at the wrong point in the update cycle. |
Constructor Summary | |
SceneGraphObject()
|
Method Summary | |
protected void |
checkForCyclicChild(SceneGraphObject parent)
Check to see if this node is the same reference as the passed node that is a parent of this node. |
protected void |
checkForCyclicParent(SceneGraphObject child)
Check to see if this node is the same reference as the passed node. |
void |
dataChanged(NodeUpdateListener l)
Notify the node that you have updates to the node that will not alter its bounds. |
java.lang.Object |
getUserData()
Get the currently set user data object. |
boolean |
isLive()
Check to see whether this object is alive or not. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
void |
setUserData(java.lang.Object data)
Set the user data to the new object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String WRITE_TIMING_MSG
protected NodeUpdateHandler updateHandler
protected boolean alive
Constructor Detail |
public SceneGraphObject()
Method Detail |
public void setUserData(java.lang.Object data)
data
- The new piece of data to setpublic java.lang.Object getUserData()
public boolean isLive()
protected void setLive(boolean state)
state
- true if this should be marked as live nowprotected void checkForCyclicParent(SceneGraphObject child) throws CyclicSceneGraphStructureException
child
- The reference to check against this class
CyclicSceneGraphStructureException
- Equal parent and childprotected void checkForCyclicChild(SceneGraphObject parent) throws CyclicSceneGraphStructureException
parent
- The reference to check against this class
CyclicSceneGraphStructureException
- Equal parent and childprotected void setUpdateHandler(NodeUpdateHandler handler)
handler
- The instance to use as a handlerpublic void dataChanged(NodeUpdateListener l)
l
- The change requestor
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |