OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OSGVruiNode.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef OSG_VRUI_NODE_H
9 #define OSG_VRUI_NODE_H
10 
11 #include <osg/Group>
14 
15 #include <string>
16 
17 namespace vrui
18 {
19 
20 class OSGVRUIEXPORT OSGVruiNode : public virtual vruiNode
21 {
22 
23 public:
24  OSGVruiNode(osg::Node *node);
25  virtual ~OSGVruiNode();
26 
27  virtual void addChild(vruiNode *node);
28  virtual void removeChild(vruiNode *node);
29  virtual void insertChild(int location, vruiNode *node);
30 
31  virtual void removeAllParents();
32  virtual void removeAllChildren();
33 
34  virtual void setName(const std::string &name);
35  virtual std::string getName() const;
36 
37  virtual int getNumParents() const;
38  virtual vruiNode *getParent(int parent = 0);
39 
40  virtual void convertToWorld(vruiMatrix *matrix);
41 
42  virtual vruiUserData *getUserData(const std::string &name);
43  virtual void setUserData(const std::string &name, vruiUserData *data);
44 
45  osg::Node *getNodePtr();
46 
47 private:
48  osg::ref_ptr<osg::Node> node;
49  OSGVruiNode *parent;
50 };
51 }
52 #endif
Definition: vruiNode.h:21
Definition: vruiMatrix.h:19
Definition: OSGVruiNode.h:20
Userdata that can be attached to Nodes in the scenegraph.
Definition: vruiUserData.h:17