vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MTCreatorTool.h
Go to the documentation of this file.
1 #ifndef _DYNAMIC_ART_CREATOR_TOOL_H
2 #define _DYNAMIC_ART_CREATOR_TOOL_H
3 
4 #include "DATool.h"
5 #include "PoA.h"
6 #include "SimpleBox.h"
7 
8 class DAEnvironment;
9 
10 typedef osg::ref_ptr<SimpleBox> ref_ptr_SimpleBox;
11 
13 
17 class MTCreatorTool : public DATool
18 {
19 public:
20 
23 
24  void activate();
25  void deactivate();
26 
28  std::vector<DASample>* getSamples();
29 
30  void postInitialize(void);
31 
32  void processEvent(const std::string &input_name, void *value);
33 
34  void turnOn();
35 
36  void turnOff();
37 
38  void update();
39 
40 
41 
42 protected:
43 
45  string posString;
46  string oriString;
47 
49 
50  osg::Vec3 position;
51  osg::Quat orientation;
52 
53  osg::Vec3 DAAposition;
54  osg::Quat DAAOrientation;
55  osg::Vec3 DAAScale;
56 
57  bool newPosition;
59 
60  std::vector<DASample>* samples;
61 
62 };
63 
64 
65 typedef osg::ref_ptr<MTCreatorTool> ref_ptr_MTCreatorTool;
66 
67 #endif // _DYNAMIC_ART_CREATOR_TOOL_H