Developer Documentation
ACG::SceneGraph::SetDrawModesAction Class Reference

#include <OpenFlipper/libs_required/ACG/Scenegraph/SceneGraph.hh>

Public Member Functions

 SetDrawModesAction (const 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 632 of file SceneGraph.hh.

Constructor & Destructor Documentation

◆ SetDrawModesAction()

ACG::SceneGraph::SetDrawModesAction::SetDrawModesAction ( const 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 644 of file SceneGraph.hh.

Member Function Documentation

◆ operator()()

bool ACG::SceneGraph::SetDrawModesAction::operator() ( BaseNode _node)
inline

Definition at line 646 of file SceneGraph.hh.

Member Data Documentation

◆ force_

bool ACG::SceneGraph::SetDrawModesAction::force_
private

Definition at line 670 of file SceneGraph.hh.

◆ newModes_

DrawModes::DrawMode ACG::SceneGraph::SetDrawModesAction::newModes_
private

Definition at line 669 of file SceneGraph.hh.


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