1 /* |
|
2 TUIO C++ Library - part of the reacTIVision project |
|
3 http://reactivision.sourceforge.net/ |
|
4 |
|
5 Copyright (c) 2005-2008 Martin Kaltenbrunner <mkalten@iua.upf.edu> |
|
6 |
|
7 This program is free software; you can redistribute it and/or modify |
|
8 it under the terms of the GNU General Public License as published by |
|
9 the Free Software Foundation; either version 2 of the License, or |
|
10 (at your option) any later version. |
|
11 |
|
12 This program is distributed in the hope that it will be useful, |
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 GNU General Public License for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with this program; if not, write to the Free Software |
|
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 */ |
|
21 |
|
22 /* |
|
23 Modified by alexandre.bastien@iri.centrepompidou.fr to manage TUIO strings. |
|
24 */ |
|
25 |
|
26 #ifndef INCLUDED_TUIOCURSOR_H |
|
27 #define INCLUDED_TUIOCURSOR_H |
|
28 |
|
29 #include <list> |
|
30 #include <math.h> |
|
31 #include "TuioContainer.h" |
|
32 |
|
33 class TuioCursor: public TuioContainer { |
|
34 |
|
35 protected: |
|
36 int finger_id; |
|
37 std::list<TuioPoint> path; |
|
38 |
|
39 public: |
|
40 TuioCursor (long s_id, int f_id, float xpos, float ypos):TuioContainer(s_id,xpos,ypos) { |
|
41 this->finger_id = f_id; |
|
42 }; |
|
43 |
|
44 /* |
|
45 * Surchargé par alexandre.bastien@iri.centrepompidou.fr |
|
46 */ |
|
47 TuioCursor (long s_id, int f_id, float xpos, float ypos, float zpos):TuioContainer(s_id,xpos,ypos,zpos) { |
|
48 this->finger_id = f_id; |
|
49 }; |
|
50 |
|
51 TuioCursor (TuioCursor *tuioCursor):TuioContainer(tuioCursor) { |
|
52 this->finger_id = tuioCursor->getFingerID(); |
|
53 }; |
|
54 |
|
55 ~TuioCursor(){}; |
|
56 |
|
57 int getFingerID() { return finger_id; }; |
|
58 }; |
|
59 |
|
60 #endif |
|