vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SliceTool.h
Go to the documentation of this file.
1 #ifndef _DYNAMIC_ART_SLICE_TOOL_H
2 #define _DYNAMIC_ART_SLICE_TOOL_H
3 
4 #include "DATool.h"
5 #include "PoA.h"
6 
7 class DAEnvironment;
8 
9 
10 
11 class SliceTool : public DATool
12 {
13 public:
14 
15  SliceTool();
16  ~SliceTool();
17 
22  void activate();
23 
24  void deactivate();
25 
26  void postInitialize(void);
27 
28  //void processEvent(const std::string &input_name, void *value);
29 
30  void turnOn();
31 
32  void turnOff();
33 
34 
35 
36 protected:
37  //int sensorNumber; ///< number of optitrack sensor (trackable in TrackingTools). Usually 0 (right hand)
38  //std::string posString; ///< "SensorXPosition" where X is sensor number
39  //std::string oriString; ///< "SensorXOrientation" where X is sensor number
40  //std::string PointerPosReqString; ///< request for (initial) position string
41  //std::string PointerOriReqString; ///< request for (initial) orientation string
42 
44 // DAEnvironment* daEnvironment; ///< DAEnvironment
45  //osg::ref_ptr<PoA> poa; ///< actual poa, if there is some
46 
47  //osg::Vec3 originalHandposition;
48  //osg::Quat originalHandOrientation;
49  //osg::Vec3 originalLocalHandposition;
50  //osg::Vec3 localHandDiffVec; //movement of hand in local coords.
51 
52  //osg::Vec3 newHandPosition;
53  //osg::Quat newHandOrientation;
54 
55  //osg::Vec3 originalPoAPosition; // PoA coords are always local
56  //osg::Quat originalPoAOrientation;
57  //osg::Vec3 originalPoAScale;
58 
59  //osg::Vec3 DAAposition;
60  //osg::Quat DAAOrientation;
61  //osg::Vec3 DAAScale;
62 
63  //bool innterconnectionsAdded; ///< to avoid repeated calling of addInterconn...()
64 
65  //bool clipping; //is clipping active
66  osg::ClipNode* clipNode;
67  osg::ClipPlane* lowClipPlane;
68  osg::ClipPlane* topClipPlane;
69 
70 };
71 
72 
73 #endif // _DYNAMIC_ART_SLICE_TOOL_H