Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::SceneGraph::SetDrawModesAction Class Reference

#include <ACG/Scenegraph/SceneGraph.hh>

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.

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

Definition at line 638 of file SceneGraph.hh.

Constructor & Destructor Documentation

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

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.

Parameters
_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 SceneGraph.hh.


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