equal
deleted
inserted
replaced
40 #include "ip/PacketListener.h" |
40 #include "ip/PacketListener.h" |
41 |
41 |
42 #include "TuioListener.h" |
42 #include "TuioListener.h" |
43 #include "TuioObject.h" |
43 #include "TuioObject.h" |
44 #include "TuioCursor.h" |
44 #include "TuioCursor.h" |
|
45 #include "TuioString.h" |
45 |
46 |
46 using namespace osc; |
47 using namespace osc; |
47 |
48 |
48 class TuioClient : public PacketListener { |
49 class TuioClient : public PacketListener { |
49 |
50 |
57 bool isRunning() { return running; } |
58 bool isRunning() { return running; } |
58 |
59 |
59 |
60 |
60 TuioObject* getTuioObject(long s_id); |
61 TuioObject* getTuioObject(long s_id); |
61 TuioCursor* getTuioCursor(long s_id); |
62 TuioCursor* getTuioCursor(long s_id); |
|
63 /* |
|
64 * Ajouté par alexandre.bastien@iri.centrepompidou.fr |
|
65 */ |
|
66 TuioString* getTuioString(long s_id); |
62 std::list<TuioObject*> getTuioObjects(); |
67 std::list<TuioObject*> getTuioObjects(); |
63 std::list<TuioCursor*> getTuioCursors(); |
68 std::list<TuioCursor*> getTuioCursors(); |
|
69 /* |
|
70 * Ajouté par alexandre.bastien@iri.centrepompidou.fr |
|
71 */ |
|
72 std::list<TuioString*> getTuioStrings(); |
64 |
73 |
65 void addTuioListener(TuioListener *listener); |
74 void addTuioListener(TuioListener *listener); |
66 void removeTuioListener(TuioListener *listener); |
75 void removeTuioListener(TuioListener *listener); |
67 |
76 |
68 void ProcessPacket( const char *data, int size, const IpEndpointName& remoteEndpoint ); |
77 void ProcessPacket( const char *data, int size, const IpEndpointName& remoteEndpoint ); |
78 |
87 |
79 std::list<TuioObject*> objectList; |
88 std::list<TuioObject*> objectList; |
80 std::list<long> aliveObjectList, objectBuffer; |
89 std::list<long> aliveObjectList, objectBuffer; |
81 std::list<TuioCursor*> cursorList; |
90 std::list<TuioCursor*> cursorList; |
82 std::list<long> aliveCursorList, cursorBuffer; |
91 std::list<long> aliveCursorList, cursorBuffer; |
|
92 /* |
|
93 * Ajouté par alexandre.bastien@iri.centrepompidou.fr |
|
94 */ |
|
95 std::list<TuioString*> stringList; |
|
96 std::list<long> aliveStringList, stringBuffer; |
83 |
97 |
84 int32 currentFrame, lastFrame; |
98 int32 currentFrame, lastFrame; |
85 |
99 |
86 long startTime; |
100 long startTime; |
87 long lastTime; |
101 long lastTime; |
88 long getCurrentTime(); |
102 long getCurrentTime(); |
89 |
103 |
90 std::list<TuioCursor*> freeCursorList, freeCursorBuffer; |
104 std::list<TuioCursor*> freeCursorList, freeCursorBuffer; |
91 int maxFingerID; |
105 /* |
|
106 * Ajouté par alexandre.bastien@iri.centrepompidou.fr |
|
107 */ |
|
108 std::list<TuioString*> freeStringList, freeStringBuffer; |
|
109 int maxFingerID, maxStringID; |
92 |
110 |
93 #ifndef WIN32 |
111 #ifndef WIN32 |
94 pthread_t thread; |
112 pthread_t thread; |
95 #else |
113 #else |
96 HANDLE thread; |
114 HANDLE thread; |