vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PerlinLinesTools.h
Go to the documentation of this file.
1 #ifndef _DYNAMIC_ART_PERLIN_LINES_TOOLS_H
2 #define _DYNAMIC_ART_PERLIN_LINES_TOOLS_H
3 
4 #include "DATool.h"
5 #include "PoA.h"
6 #include "SimpleBox.h"
7 
8 namespace APDYNAMICART
9 {
10 
11 
12 class PLNestTool : public DATool
13 {
14 public:
15  PLNestTool();
16 
18 
19  void activate() {};
20 
21  void deactivate() {};
22 
23  void postInitialize(void);
24 
25  void turnOn() {if(_cursor) _cursor->show();};
26 
27  void turnOff() {if (_cursor) _cursor->hide();};
28 
29  void update() {};
30 
31 protected:
33  osg::ClipNode* clipNode;
34 };
35 
36 
37 class PLMagnetTool : public DATool
38 {
39 public:
40  PLMagnetTool();
41 
43 
44  void activate() {};
45 
46  void deactivate() {};
47 
48  void postInitialize(void);
49 
50  void turnOn() {if(_cursor) _cursor->show();};
51 
52  void turnOff() {if (_cursor) _cursor->hide();};
53 
54  void update() {};
55 
56 protected:
58  osg::ClipNode* clipNode;
59 };
60 
61 
62 class PLControllerTool : public DATool
63 {
64 public:
66 
68 
69  void activate() {};
70 
71  void deactivate() {};
72 
73  void postInitialize(void);
74 
75  void turnOn() {if(_cursor) _cursor->show();};
76 
77  void turnOff() {if (_cursor) _cursor->hide();};
78 
79  void update() {};
80 
81 protected:
83  osg::ClipNode* clipNode;
84  osg::ClipPlane* lowClipPlane;
85  osg::ClipPlane* topClipPlane;
86 };
87 
88 
89 }
90 #endif