OpenCOVER
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
15namespace opencover
16{
17class COVEREXPORT coVRTouchTableInterface
18{
19public:
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
44class COVEREXPORT coVRTouchTable
45{
46private:
47 static coVRTouchTable *tt;
48
49public:
50 bool running;
52 virtual ~coVRTouchTable();
54
56 void update();
57 void config();
58};
59}
60#endif
Definition: ARToolKit.h:33
Definition: coVRTouchTable.h:18
coVRTouchTableInterface()
Definition: coVRTouchTable.h:20
virtual osg::Vec2 getPosition(int)
Definition: coVRTouchTable.h:34
virtual int getMarker(std::string)
Definition: coVRTouchTable.h:26
virtual float getOrientation(int)
Definition: coVRTouchTable.h:38
virtual bool isVisible(int)
Definition: coVRTouchTable.h:30
virtual ~coVRTouchTableInterface()
Definition: coVRTouchTable.h:21
virtual bool isPlanar()
Definition: coVRTouchTable.h:22
Definition: coVRTouchTable.h:45
static coVRTouchTable * instance()
bool running
Definition: coVRTouchTable.h:50
coVRTouchTableInterface * ttInterface
Definition: coVRTouchTable.h:55