OpenCOVER
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
17namespace vrui
18{
19
20class OSGVRUIEXPORT OSGVruiNode : public virtual vruiNode
21{
22
23public:
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
47private:
48 osg::ref_ptr<osg::Node> node;
49 OSGVruiNode *parent;
50};
51}
52#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: vruiMatrix.h:20
Definition: vruiNode.h:22
Userdata that can be attached to Nodes in the scenegraph.
Definition: vruiUserData.h:18
Definition: OSGVruiNode.h:21
virtual void insertChild(int location, vruiNode *node)
virtual void setName(const std::string &name)
virtual vruiNode * getParent(int parent=0)
virtual vruiUserData * getUserData(const std::string &name)
virtual int getNumParents() const
virtual void removeChild(vruiNode *node)
virtual ~OSGVruiNode()
virtual void removeAllChildren()
virtual std::string getName() const
virtual void setUserData(const std::string &name, vruiUserData *data)
virtual void removeAllParents()
virtual void addChild(vruiNode *node)
virtual void convertToWorld(vruiMatrix *matrix)
osg::Node * getNodePtr()
OSGVruiNode(osg::Node *node)