#include <SceneGraph.hh>

Public Member Functions | |
| PickAction (GLState &_state, PickTarget _target, DrawModes::DrawMode _drawmode) | |
| constructor: what picking target to use | |
| bool | operator() (BaseNode *_node) |
| bool | operator() (BaseNode *_node, GLState &_state) |
| void | enter (BaseNode *_node) |
| void | leave (BaseNode *_node) |
Private Attributes | |
| GLState & | state_ |
| PickTarget | pickTarget_ |
| DrawModes::DrawMode | drawmode_ |
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.
Definition at line 720 of file SceneGraph.hh.
Action applied to the node Convenience operator which is used to handle calls with internal/external stack with the same operator
Definition at line 98 of file SceneGraph.cc.
References operator()().
| bool ACG::SceneGraph::PickAction::operator() | ( | BaseNode * | _node | ) |
Action applied to the node
Definition at line 79 of file SceneGraph.cc.
References ACG::SceneGraph::BaseNode::id(), ACG::SceneGraph::BaseNode::pick(), ACG::GLState::pick_pop_name(), ACG::GLState::pick_push_name(), and ACG::SceneGraph::BaseNode::pickingEnabled().
Referenced by operator()().