Class dnx.lr.AuxNodeTreeContext
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.AuxNodeTreeContext
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.lr.NodeTreeContext
|
+----dnx.lr.SingleRootContext
|
+----dnx.lr.AuxNodeTreeContext
- public class AuxNodeTreeContext
- extends SingleRootContext
An AuxNodeTreeContext is an object used to represent a single block
of "auxiliary nodes" that should be rendered as part of a scene
but normally not otherwise considered part of the scene -- search
and other traversals do not normally "see" auxiliary nodes, but
this can be changed by setting flags on the traversal.
An AuxNodeTreeContext is attached to a particular NodeInstance and
is rendered in the same local coordinate system as that node instance.
It is rendered after the instance is rendered, and after any children
are rendered.
To use AuxNodeTreeContext, the normal steps are
-- create an AuxNodeTreeContext object.
-- call setRootNode() to set its root to some geometry.
-- call addAuxGeometry() on a node instance.
-- when you want the aux geometry to go away, call deleteAuxGeometry()
on the node instance.
-
AuxNodeTreeContext()
-
-
getAttachedTo()
-
-
getSceneContext()
- Return the SceneContext of the scene this context is attached to.
-
setRootNode(Node)
- Set the root node of the scene.
AuxNodeTreeContext
public AuxNodeTreeContext()
getSceneContext
public SceneContext getSceneContext()
- Return the SceneContext of the scene this context is attached to.
- Overrides:
- getSceneContext in class NodeTreeContext
getAttachedTo
public NodeInstance getAttachedTo()
setRootNode
public void setRootNode(Node node)
- Set the root node of the scene. Can be null.
- Overrides:
- setRootNode in class SingleRootContext
All Packages Class Hierarchy This Package Previous Next Index