Developer Documentation
Loading...
Searching...
No Matches
ACG::SceneGraph::FindNodeAction Class Reference

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

Public Member Functions

 FindNodeAction (unsigned int _node_id)
 constructor: _node_id is the node to be searched for
 
bool operator() (BaseNode *_node)
 
BaseNodenode_ptr ()
 Get the pointer of the node (is 0 if node was not found)
 

Private Attributes

unsigned int node_id_
 
BaseNodenode_ptr_
 

Detailed Description

This action is used to find the node specified by _node_id in a scenegraph. The result can be accessed by node_ptr() and is 0 if no node with BaseNode::id() equal to _node_id has been found.

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

Definition at line 523 of file SceneGraph.hh.

Constructor & Destructor Documentation

◆ FindNodeAction()

ACG::SceneGraph::FindNodeAction::FindNodeAction ( unsigned int  _node_id)
inlineexplicit

constructor: _node_id is the node to be searched for

Definition at line 528 of file SceneGraph.hh.

Member Function Documentation

◆ node_ptr()

BaseNode * ACG::SceneGraph::FindNodeAction::node_ptr ( )
inline

Get the pointer of the node (is 0 if node was not found)

Definition at line 542 of file SceneGraph.hh.

◆ operator()()

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

Definition at line 531 of file SceneGraph.hh.

Member Data Documentation

◆ node_id_

unsigned int ACG::SceneGraph::FindNodeAction::node_id_
private

Definition at line 546 of file SceneGraph.hh.

◆ node_ptr_

BaseNode* ACG::SceneGraph::FindNodeAction::node_ptr_
private

Definition at line 547 of file SceneGraph.hh.


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