Traverser Class Reference
[Scene]

Utility to walk through nodes. More...

#include <Traverser.hpp>

Inheritance diagram for Traverser:
Painter

List of all members.

Public Member Functions

 Traverser (Scene *scene)
virtual void start ()

Protected Member Functions

void findDependents ()
CanvasgetCanvas () const
virtual void onApplicable (Node *node, Applicable *applicable)
virtual void onDrawable (Node *node, Drawable *drawable)
void traverseChildren (Node *node)
void traverseNode (Node *node)
void setCanvas (Canvas *canvas)

Private Attributes

list< Dependent * > dependents
Scenescene
Canvascanvas

Detailed Description

Utility to walk through nodes.


Member Function Documentation

void findDependents (  )  [protected]

Finds nodes that are dependent on the canvas.

Canvas * getCanvas (  )  const [inline, protected]
Returns:
Canvas used for dependent nodes.
void setCanvas ( Canvas c  )  [inline, protected]

Sets the canvas that will be used for dependent nodes.

void traverseChildren ( Node node  )  [protected]

Recursively traverses the children of a node.

This functionality is implemented as a separate function, as opposed to incorporating it directly into paint, because some nodes need to traverse their children at different times.

Parameters:
node Pointer to the parent node.
void traverseNode ( Node node  )  [protected]

Recursively traverses a node.

Automatically takes care of performing different actions depending on what type of interfaces the node supports.

Parameters:
node Pointer to the Node to paint.

The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:37 2010 for Gander by  doxygen 1.6.3