Class dnx.lr.TraversalPathTraversal
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.TraversalPathTraversal
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.lr.Action
|
+----dnx.lr.Traversal
|
+----dnx.lr.InstanceTraversal
|
+----dnx.lr.TraversalPathTraversal
- public class TraversalPathTraversal
- extends InstanceTraversal
A subclass of InstanceTraversal that allows you to traverse only the
node instances along the traversal path. This requires that we keep
track of the object-to-viewer transformation matrix and have a current
view, so that LODNodes can select the proper child.
-
currentCamera
-
-
matrixStack
-
-
recordObjectToViewerMatrix
-
-
TraversalPathTraversal()
- Construct a traversal with a traversal type of GROUP_TRAVERSAL
and a context interest of (DEFAULT_NODES).
-
TraversalPathTraversal(int)
- Construct a traversal with the specified traversal type
and a context interest of (DEFAULT_NODES).
-
TraversalPathTraversal(int, int)
- Construct a traversal with the specified traversal type
and context interest.
-
begin(NodeInstance)
- Don't call this yourself.
-
childInstanceMapperCallback(NodeInstance, NodeInstance, int, int, Object)
- You should definitely not call this yourself.
-
enter(NodeInstance)
- Don't call this yourself.
-
getCamera()
-
-
getObjectToViewerMatrix()
-
-
getObjectToViewerMatrix(Matrix4)
-
-
initObjectToViewerRecording()
- This function can be redefined if you want to change when
the object-to-viewer matrices are recorded.
-
leave(NodeInstance)
- Don't call this yourself.
-
setCamera(Camera)
-
-
traverse(NodeInstance)
-
matrixStack
protected CopyingList matrixStack
recordObjectToViewerMatrix
protected boolean recordObjectToViewerMatrix
currentCamera
protected Camera currentCamera
TraversalPathTraversal
public TraversalPathTraversal()
- Construct a traversal with a traversal type of GROUP_TRAVERSAL
and a context interest of (DEFAULT_NODES).
TraversalPathTraversal
public TraversalPathTraversal(int traversalType)
- Construct a traversal with the specified traversal type
and a context interest of (DEFAULT_NODES).
TraversalPathTraversal
public TraversalPathTraversal(int traversalType,
int contextInterest)
- Construct a traversal with the specified traversal type
and context interest.
getCamera
public Camera getCamera()
setCamera
public void setCamera(Camera cam)
traverse
public boolean traverse(NodeInstance inst)
- Overrides:
- traverse in class InstanceTraversal
begin
public void begin(NodeInstance inst)
- Don't call this yourself. It's called automatically.
- Overrides:
- begin in class InstanceTraversal
enter
public void enter(NodeInstance inst)
- Don't call this yourself. It's called automatically.
- Overrides:
- enter in class InstanceTraversal
leave
public void leave(NodeInstance inst)
- Don't call this yourself. It's called automatically.
- Overrides:
- leave in class InstanceTraversal
childInstanceMapperCallback
public NodeInstance childInstanceMapperCallback(NodeInstance child,
NodeInstance parent,
int fieldind,
int nodeind,
Object mapData)
- You should definitely not call this yourself. Override this if
you want to change the way the traversal works.
- Overrides:
- childInstanceMapperCallback in class InstanceTraversal
initObjectToViewerRecording
protected void initObjectToViewerRecording()
- This function can be redefined if you want to change when
the object-to-viewer matrices are recorded. Note that these must
always* be recorded when doing a traversal-path traversal.
getObjectToViewerMatrix
protected final Matrix4 getObjectToViewerMatrix()
getObjectToViewerMatrix
public boolean getObjectToViewerMatrix(Matrix4 mat)
All Packages Class Hierarchy This Package Previous Next Index