|
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.Node org.j3d.aviatrix3d.BaseNode
public abstract class BaseNode
A general purpose container class to allow end users to extend the basic Node 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.Node |
---|
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Constructor Summary | |
---|---|
protected |
BaseNode()
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 |
removeParent(Node node,
Node p)
Remove a parent from this node. |
protected void |
setLive(SceneGraphObject node,
boolean state)
Set the live state of the given node to this state. |
protected void |
setParent(Node node,
Node p)
Specify this nodes parent. |
protected void |
setUpdateHandler(SceneGraphObject node)
Set the scenegraph update handler for this node. |
Methods inherited from class org.j3d.aviatrix3d.Node |
---|
boundsChanged, checkForCyclicParent, getBounds, getParent, markBoundsDirty, recomputeBounds, removeParent, requestBoundsUpdate, setBounds, setParent, updateBounds, updateParentBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, 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 BaseNode()
Method Detail |
---|
protected void setParent(Node node, Node p) throws AlreadyParentedException
node
- The node instance to set the parent onp
- The new parent instance to call or null
AlreadyParentedException
- There is a valid parent already setprotected void removeParent(Node node, Node p)
node
- The node instance to set the parent onp
- The new parent instance to remove from the listprotected 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 state 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 |