Developer Documentation
ACG::SceneGraph::DrawAction Class Reference

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

Public Member Functions

 DrawAction (const DrawModes::DrawMode &_drawMode, GLState &_state, bool _blending)
 Constructor: draws the scenegraph using _drawMode. More...
 
bool operator() (BaseNode *_node)
 
void enter (BaseNode *_node)
 
void leave (BaseNode *_node)
 

Private Attributes

GLStatestate_
 
DrawModes::DrawMode drawMode_
 
bool blending_
 

Detailed Description

This action is used to traverse and draw a scenegraph using the draw mode specified in the constructor. Specify if you want to draw solid or transparent objects. Needs GLState.

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

Definition at line 687 of file SceneGraph.hh.

Constructor & Destructor Documentation

◆ DrawAction()

ACG::SceneGraph::DrawAction::DrawAction ( const DrawModes::DrawMode _drawMode,
GLState _state,
bool  _blending 
)
inline

Constructor: draws the scenegraph using _drawMode.

Definition at line 692 of file SceneGraph.hh.

Member Function Documentation

◆ enter()

void ACG::SceneGraph::DrawAction::enter ( BaseNode _node)
inline

Definition at line 711 of file SceneGraph.hh.

◆ leave()

void ACG::SceneGraph::DrawAction::leave ( BaseNode _node)
inline

Definition at line 719 of file SceneGraph.hh.

◆ operator()()

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

Definition at line 697 of file SceneGraph.hh.

Member Data Documentation

◆ blending_

bool ACG::SceneGraph::DrawAction::blending_
private

Definition at line 731 of file SceneGraph.hh.

◆ drawMode_

DrawModes::DrawMode ACG::SceneGraph::DrawAction::drawMode_
private

Definition at line 730 of file SceneGraph.hh.

◆ state_

GLState& ACG::SceneGraph::DrawAction::state_
private

Definition at line 729 of file SceneGraph.hh.


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