Developer Documentation

Public Member Functions | Private Attributes | List of all members
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

  _mode | The draw mode set for the traversed nodes
  _force | If true, the mode is set ignoring if its supported by the nodes

Definition at line 644 of file SceneGraph.hh.

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

- OpenFlipper/libs_required/ACG/Scenegraph/SceneGraph.hh