Developer Documentation
ACG::SceneGraph::PickAction Class Reference

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

Public Member Functions

 PickAction (GLState &_state, PickTarget _target, const DrawModes::DrawMode &_drawmode)
 constructor: what picking target to use More...
 
bool operator() (BaseNode *_node)
 
bool operator() (BaseNode *_node, GLState &_state)
 
void enter (BaseNode *_node)
 
void leave (BaseNode *_node)
 

Private Attributes

GLStatestate_
 
PickTarget pickTarget_
 
DrawModes::DrawMode drawmode_
 

Detailed Description

This action is used to pick an object in a scene. All GL states for picking must be set before using this action. It merely draws the scene AND uses the picking name stack. Needs GLState.

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

Definition at line 746 of file SceneGraph.hh.

Constructor & Destructor Documentation

◆ PickAction()

ACG::SceneGraph::PickAction::PickAction ( GLState _state,
PickTarget  _target,
const DrawModes::DrawMode _drawmode 
)
inline

constructor: what picking target to use

Definition at line 751 of file SceneGraph.hh.

Member Function Documentation

◆ enter()

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

Definition at line 765 of file SceneGraph.hh.

◆ leave()

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

Definition at line 773 of file SceneGraph.hh.

◆ operator()() [1/2]

bool ACG::SceneGraph::PickAction::operator() ( BaseNode _node)

Action applied to the node

Definition at line 104 of file SceneGraph.cc.

◆ operator()() [2/2]

bool ACG::SceneGraph::PickAction::operator() ( BaseNode _node,
GLState _state 
)

Action applied to the node Convenience operator which is used to handle calls with internal/external stack with the same operator

Definition at line 127 of file SceneGraph.cc.

Member Data Documentation

◆ drawmode_

DrawModes::DrawMode ACG::SceneGraph::PickAction::drawmode_
private

Definition at line 785 of file SceneGraph.hh.

◆ pickTarget_

PickTarget ACG::SceneGraph::PickAction::pickTarget_
private

Definition at line 784 of file SceneGraph.hh.

◆ state_

GLState& ACG::SceneGraph::PickAction::state_
private

Definition at line 783 of file SceneGraph.hh.


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