ACG::SceneGraph::MultiPassInfoAction Class Reference

#include <SceneGraph.hh>

List of all members.

Public Member Functions

bool operator() (BaseNode *_node)
unsigned int getMaxPasses () const
 Get the number of required traverse passes from Scenegraph.
unsigned int getStatusPasses ()
 Get the number of required status traversals from Scenegraph.
unsigned int getNodePasses ()
 Get the number of required node traversals from Scenegraph.

Private Attributes

unsigned int statusPasses_
unsigned int nodePasses_

Detailed Description

Get the maximum number of render passes that will be used to render the scene graph. multipassStatus() and multipassNode return a bit mask of length 32 that holds 1 at position i if the node will be i-th drawn in the i-th render pass.

So if renderPass() == 0x00...001011, the node will be drawn during render pass 1, 2 and 4.

Note:
This class implements an action that should be used as a parameter for the traverse() functions.

Definition at line 436 of file SceneGraph.hh.


Member Function Documentation

unsigned int ACG::SceneGraph::MultiPassInfoAction::getMaxPasses (  )  const [inline]

Get the number of required traverse passes from Scenegraph.

This number is the maximum of status and node passes required.

Definition at line 495 of file SceneGraph.hh.

Referenced by glViewer::sceneGraph().

unsigned int ACG::SceneGraph::MultiPassInfoAction::getNodePasses (  )  [inline]

Get the number of required node traversals from Scenegraph.

This number is the of required node passes.

Definition at line 512 of file SceneGraph.hh.

unsigned int ACG::SceneGraph::MultiPassInfoAction::getStatusPasses (  )  [inline]

Get the number of required status traversals from Scenegraph.

This number is the number of requried status passes required.

Definition at line 506 of file SceneGraph.hh.


The documentation for this class was generated from the following file:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .