TactileVestProject  V1.0
Tactile user interface configuration tool
 All Classes Functions
Node.h
1 #ifndef NODE_H
2 #define NODE_H
3 
4 #include <QObject>
5 
6 #include <osg/ShapeDrawable>
7 #include <osg/Vec3d>
8 
9 class Node : public QObject
10 {
11  Q_OBJECT
12 
13 protected:
14  QString id;
15  osg::Vec3d location;
16  bool placed;
17 
18 public:
19  Node(const QString& id);
20 
21  QString GetID() const;
22  osg::Vec3d GetLocation();
23 
24  void SetID(const QString &id);
25  void SetLocation(osg::Vec3d location);
26 
27  virtual osg::ShapeDrawable* getDrawable();
28  void unplace();
29  bool isPlaced();
30 
31 signals:
32  void addNode(Node*);
33  void removeNode(Node*);
34 };
35 
36 #endif // NODE_H
void SetID(const QString &id)
Definition: Node.cpp:30
void SetLocation(osg::Vec3d location)
Definition: Node.cpp:39
Definition: Node.h:9
QString GetID() const
Definition: Node.cpp:12
virtual osg::ShapeDrawable * getDrawable()
Definition: Node.cpp:49
void unplace()
Definition: Node.cpp:58
osg::Vec3d GetLocation()
Definition: Node.cpp:21