vizkit3d
OsgVisitors.hpp
Go to the documentation of this file.
1 #ifndef __VIZKIT_FINDNODE_HPP
2 #define __VIZKIT_FINDNODE_HPP
3 
4 #include <osg/NodeVisitor>
5 #include <osg/Geometry>
6 #include <string>
7 
8 namespace vizkit3d
9 {
10  class FindNode : public ::osg::NodeVisitor
11  {
12  public:
13  static ::osg::Node *find(::osg::Node &node,std::string name);
14 
15  FindNode();
16  FindNode(std::string name);
17 
18  ::osg::Node *getNode();
19  void apply(::osg::Node &node);
20  private:
21  ::osg::ref_ptr< ::osg::Node> node;
22  std::string name;
23  };
24 }
25 #endif
Definition: OsgVisitors.hpp:10
::osg::Node * getNode()
Definition: OsgVisitors.cpp:24
::osg::Node * find(::osg::Node &node, std::string name)
Definition: OsgVisitors.cpp:6
FindNode()
Definition: OsgVisitors.cpp:13
void apply(::osg::Node &node)
Definition: OsgVisitors.cpp:29