Developer Documentation
ACG::SceneGraph::ACG::SceneGraph::SetDrawModesAction Class Reference

Public Member Functions

 SetDrawModesAction (DrawModes::DrawMode _mode, bool _force=false)
 Set draw modes for all nodes traversed with this action. More...
bool operator() (BaseNode *_node)

Private Attributes

DrawModes::DrawMode newModes_
bool force_

Detailed Description

This action sets the draw mode on all nodes in a scenegraph. If the drawMode is not supported by the node, it will set it to default draw mode. If the given mode is the default mode it will be set on all nodes.

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

Definition at line 638 of file

Constructor & Destructor Documentation

ACG::SceneGraph::ACG::SceneGraph::SetDrawModesAction::SetDrawModesAction ( DrawModes::DrawMode  _mode,
bool  _force = false 

Set draw modes for all nodes traversed with this action.

This action can be used to set the drawmodes for all nodes which are traversed using this action.

_modeThe draw mode set for the traversed nodes
_forceIf true, the mode is set ignoring if its supported by the nodes

Definition at line 650 of file

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