gramods
Loading...
Searching...
No Matches
TUIOEventAdaptor.hh
1
2#ifndef GRAMODS_TOUCH_TUIOEVENTADAPTOR
3#define GRAMODS_TOUCH_TUIOEVENTADAPTOR
4
5#include <gmTouch/config.hh>
6
7#ifdef gramods_ENABLE_TUIO
8
9#include <gmTouch/TouchState.hh>
10
11#include <memory>
12#include <mutex>
13
14BEGIN_NAMESPACE_GMTOUCH;
15
31class TUIOEventAdaptor
32 : public TouchState::EventAdaptor {
33
34public:
35 TUIOEventAdaptor();
36
42 void connect(std::string address = "localhost", int port = 3333);
43
48 void open(int port = 3333);
49
53 void init(int width, int height) override;
54
59 void done() override;
60
61private:
62 struct Impl;
63 std::unique_ptr<Impl> _impl;
64};
65
66END_NAMESPACE_GMTOUCH;
67
68#endif
69#endif