root / trunk / tbeta / Windows / addons / ofxNCore / src / Communication / TUIOOSC.h @ 87
View | Annotate | Download (595 Bytes)
| 1 | #ifndef _TUIOOSC
|
|---|---|
| 2 | #define _TUIOOSC
|
| 3 | |
| 4 | #include "../Tracking/ofxTBetaCvContourFinder.h" |
| 5 | #define OF_ADDON_USING_OFXOSC // OSC COMMUNICATION |
| 6 | #include "ofAddons.h" |
| 7 | |
| 8 | class TUIOOSC {
|
| 9 | |
| 10 | private:
|
| 11 | |
| 12 | int frameseq;
|
| 13 | |
| 14 | public:
|
| 15 | |
| 16 | // constructors
|
| 17 | TUIOOSC(); |
| 18 | // destructor
|
| 19 | ~TUIOOSC(); |
| 20 | |
| 21 | // methods
|
| 22 | void setup(const char* host, int port); |
| 23 | void update();
|
| 24 | void sendOSC();
|
| 25 | |
| 26 | //---------------------------------------FOR NETWORK
|
| 27 | ofxOscSender TUIOSocket; |
| 28 | const char* localHost; |
| 29 | char remoteHost[255]; |
| 30 | int TUIOPort;
|
| 31 | |
| 32 | map<int, ofxTBetaCvBlob> blobs;
|
| 33 | }; |
| 34 | |
| 35 | #endif
|
