|
Aviatrix3D 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
A Node class is the base class for all renderable nodes in the SceneGraph.
Field Summary | |
protected BoundingVolume |
bounds
Bounding volume set by the user |
protected boolean |
implicitBounds
Was the bounds automatically calculated? |
protected static BoundingVoid |
INVALID_BOUNDS
Sharable version of the null bounds object for those that need it |
protected Node |
parent
The parent of this node |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
protected |
Node()
Construct a new instance of this node, with implicit bounds calculation. |
Method Summary | |
void |
boundsChanged(NodeUpdateListener l)
Notify the node that you have updates to the node that might alter its bounds. |
protected void |
checkForCyclicParent(SceneGraphObject child)
Check to see if this node is the same reference as the passed node. |
BoundingVolume |
getBounds()
Get the currently set bounds for this object. |
Node |
getParent()
Get the current parent of this node. |
protected void |
markBoundsDirty()
Mark this node as having dirty bounds due to one of it's children having their bounds changed. |
protected void |
recomputeBounds()
Internal method to recalculate the implicit bounds of this Node. |
protected void |
removeParent(Node p)
Remove a parent from this node. |
void |
setBounds(BoundingVolume b)
Set the bounds to the given explicit value. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
protected void |
setParent(Node p)
Specify this nodes parent. |
protected void |
updateBounds()
Update this node's bounds. |
protected void |
updateParentBounds()
Update this node's parent bounds now. |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, dataChanged, getUserData, isLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final BoundingVoid INVALID_BOUNDS
protected Node parent
protected BoundingVolume bounds
protected boolean implicitBounds
Constructor Detail |
protected Node()
Method Detail |
protected void checkForCyclicParent(SceneGraphObject child) throws CyclicSceneGraphStructureException
checkForCyclicParent
in class SceneGraphObject
child
- The reference to check against this class
CyclicSceneGraphStructureException
- Equal parent and childprotected void setLive(boolean state)
setLive
in class SceneGraphObject
state
- true if this should be marked as live nowprotected void setParent(Node p) throws AlreadyParentedException
p
- The new parent instance to call or null
AlreadyParentedException
- There is a valid parent already setprotected void removeParent(Node p)
p
- The new parent instance to remove from the listpublic Node getParent()
public void boundsChanged(NodeUpdateListener l) throws InvalidListenerSetTimingException
l
- The change requestor
InvalidListenerSetTimingException
- If called when the node is not live or
if called during one of the bounds/data changed callbackspublic void setBounds(BoundingVolume b)
b
- The new bounds to use or null to clearpublic BoundingVolume getBounds()
protected void updateBounds()
protected void updateParentBounds()
protected void recomputeBounds()
protected void markBoundsDirty()
|
Aviatrix3D 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |