OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coVRTouchTable.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 TouchTable_H
9 #define TouchTable_H
10 
11 #include <osg/Matrix>
12 #include <osg/Drawable>
13 #include <osg/Vec2>
14 
15 namespace opencover
16 {
17 class COVEREXPORT coVRTouchTableInterface
18 {
19 public:
22  virtual bool isPlanar()
23  {
24  return false;
25  };
26  virtual int getMarker(std::string /*name*/)
27  {
28  return -1;
29  };
30  virtual bool isVisible(int)
31  {
32  return false;
33  };
34  virtual osg::Vec2 getPosition(int)
35  {
36  return osg::Vec2(0, 0);
37  };
38  virtual float getOrientation(int)
39  {
40  return 0;
41  };
42 };
43 
44 class COVEREXPORT coVRTouchTable
45 {
46 private:
47  static coVRTouchTable *tt;
48 
49 public:
50  bool running;
52  virtual ~coVRTouchTable();
53  static coVRTouchTable *instance();
54 
56  void update();
57  void config();
58 };
59 }
60 #endif
virtual bool isPlanar()
Definition: coVRTouchTable.h:22
virtual ~coVRTouchTableInterface()
Definition: coVRTouchTable.h:21
coVRTouchTableInterface()
Definition: coVRTouchTable.h:20
bool running
Definition: coVRTouchTable.h:50
Definition: coVRTouchTable.h:17
virtual osg::Vec2 getPosition(int)
Definition: coVRTouchTable.h:34
virtual int getMarker(std::string)
Definition: coVRTouchTable.h:26
Definition: coVRTouchTable.h:44
virtual float getOrientation(int)
Definition: coVRTouchTable.h:38
virtual bool isVisible(int)
Definition: coVRTouchTable.h:30
coVRTouchTableInterface * ttInterface
Definition: coVRTouchTable.h:55