|
21
|
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 |
#ifndef INCLUDED_TUIOCURSOR_H |
|
|
23 |
#define INCLUDED_TUIOCURSOR_H |
|
|
24 |
|
|
|
25 |
#include <list> |
|
|
26 |
#include <math.h> |
|
|
27 |
#include "TuioContainer.h" |
|
|
28 |
|
|
|
29 |
class TuioCursor: public TuioContainer { |
|
|
30 |
|
|
|
31 |
protected: |
|
|
32 |
int finger_id; |
|
|
33 |
std::list<TuioPoint> path; |
|
|
34 |
|
|
|
35 |
public: |
|
|
36 |
TuioCursor (long s_id, int f_id, float xpos, float ypos):TuioContainer(s_id,xpos,ypos) { |
|
|
37 |
this->finger_id = f_id; |
|
|
38 |
}; |
|
|
39 |
|
|
|
40 |
TuioCursor (TuioCursor *tuioCursor):TuioContainer(tuioCursor) { |
|
|
41 |
this->finger_id = tuioCursor->getFingerID(); |
|
|
42 |
}; |
|
|
43 |
|
|
|
44 |
~TuioCursor(){}; |
|
|
45 |
|
|
|
46 |
int getFingerID() { return finger_id; }; |
|
|
47 |
}; |
|
|
48 |
|
|
|
49 |
#endif |