|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.SceneGraphObject org.j3d.aviatrix3d.BaseSceneGraphObject
public abstract class BaseSceneGraphObject
A general purpose container class to allow end users to extend the basic geometry capabilities, while still providing a way to manage scene graph state such as liveness calls and update handlers.
A lot of the state calls of children can only be called by extending the class and calling protected methods. When a child scenegraph object is defined for a collection of children outside of the base aviatrix3d package there is no way for passing in liveness state due to the protected nature of the required methods. This class provides methods that allow a derived class to call back into the package and set those states.
Field Summary |
---|
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Constructor Summary | |
---|---|
protected |
BaseSceneGraphObject()
The default constructor |
Method Summary | |
---|---|
protected void |
checkForCyclicChild(SceneGraphObject node,
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 node,
SceneGraphObject child)
Check to see if this node is the same reference as the passed node. |
protected void |
clearUpdateHandler(SceneGraphObject node)
Clear the scenegraph update handler for this node. |
protected void |
setLive(SceneGraphObject node,
boolean state)
Set the live state of the given node to this state. |
protected void |
setUpdateHandler(SceneGraphObject node)
Set the scenegraph update handler for this node. |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseSceneGraphObject()
Method Detail |
---|
protected void setLive(SceneGraphObject node, boolean state)
state
- The new liveness state to setnode
- The node instance to set the live state onprotected void checkForCyclicParent(SceneGraphObject node, SceneGraphObject child) throws CyclicSceneGraphStructureException
child
- The reference to check against this classnode
- The node instance to check on
CyclicSceneGraphStructureException
- Equal parent and childprotected void checkForCyclicChild(SceneGraphObject node, SceneGraphObject parent) throws CyclicSceneGraphStructureException
node
- The node instance to check onparent
- The reference to check against this class
CyclicSceneGraphStructureException
- Equal parent and childprotected void setUpdateHandler(SceneGraphObject node)
node
- The node instance to set the current handler onprotected void clearUpdateHandler(SceneGraphObject node)
node
- The node instance to set the state on
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |