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

#include <ACG/Scenegraph/SceneGraph.hh>

Public Member Functions

 DrawAction (DrawModes::DrawMode _drawMode, GLState &_state, bool _blending)
 Constructor: draws the scenegraph using _drawMode.
 
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 693 of file SceneGraph.hh.


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