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.

Variable Index

 o currentCamera
 o matrixStack
 o recordObjectToViewerMatrix

Constructor Index

 o TraversalPathTraversal()
Construct a traversal with a traversal type of GROUP_TRAVERSAL and a context interest of (DEFAULT_NODES).
 o TraversalPathTraversal(int)
Construct a traversal with the specified traversal type and a context interest of (DEFAULT_NODES).
 o TraversalPathTraversal(int, int)
Construct a traversal with the specified traversal type and context interest.

Method Index

 o begin(NodeInstance)
Don't call this yourself.
 o childInstanceMapperCallback(NodeInstance, NodeInstance, int, int, Object)
You should definitely not call this yourself.
 o enter(NodeInstance)
Don't call this yourself.
 o getCamera()
 o getObjectToViewerMatrix()
 o getObjectToViewerMatrix(Matrix4)
 o initObjectToViewerRecording()
This function can be redefined if you want to change when the object-to-viewer matrices are recorded.
 o leave(NodeInstance)
Don't call this yourself.
 o setCamera(Camera)
 o traverse(NodeInstance)

Variables

 o matrixStack
  protected CopyingList matrixStack
 o recordObjectToViewerMatrix
  protected boolean recordObjectToViewerMatrix
 o currentCamera
  protected Camera currentCamera

Constructors

 o TraversalPathTraversal
  public TraversalPathTraversal()
Construct a traversal with a traversal type of GROUP_TRAVERSAL and a context interest of (DEFAULT_NODES).
 o TraversalPathTraversal
  public TraversalPathTraversal(int traversalType)
Construct a traversal with the specified traversal type and a context interest of (DEFAULT_NODES).
 o TraversalPathTraversal
  public TraversalPathTraversal(int traversalType,
                                int contextInterest)
Construct a traversal with the specified traversal type and context interest.

Methods

 o getCamera
  public Camera getCamera()
 o setCamera
  public void setCamera(Camera cam)
 o traverse
  public boolean traverse(NodeInstance inst)
Overrides:
traverse in class InstanceTraversal
 o begin
  public void begin(NodeInstance inst)
Don't call this yourself. It's called automatically.
Overrides:
begin in class InstanceTraversal
 o enter
  public void enter(NodeInstance inst)
Don't call this yourself. It's called automatically.
Overrides:
enter in class InstanceTraversal
 o leave
  public void leave(NodeInstance inst)
Don't call this yourself. It's called automatically.
Overrides:
leave in class InstanceTraversal
 o 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
 o 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.
 o getObjectToViewerMatrix
  protected final Matrix4 getObjectToViewerMatrix()
 o getObjectToViewerMatrix
  public boolean getObjectToViewerMatrix(Matrix4 mat)

All Packages  Class Hierarchy  This Package  Previous  Next  Index