- Main Page
- Classes
- Files

# TuioCursor.h

    00001 /*
    00002  TUIO C++ Library - part of the reacTIVision project
    00003  http://reactivision.sourceforge.net/
    00004
    00005  Copyright (c) 2005-2009 Martin Kaltenbrunner <mkalten@iua.upf.edu>
    00006
    00007  This program is free software; you can redistribute it and/or modify
    00008  it under the terms of the GNU General Public License as published by
    00009  the Free Software Foundation; either version 2 of the License, or
    00010  (at your option) any later version.
    00011
    00012  This program is distributed in the hope that it will be useful,
    00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00015  GNU General Public License for more details.
    00016
    00017  You should have received a copy of the GNU General Public License
    00018  along with this program; if not, write to the Free Software
    00019  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00020  */
    00021
    00022 #ifndef INCLUDED_TUIOCURSOR_H
    00023 #define INCLUDED_TUIOCURSOR_H
    00024
    00025 #include <math.h>
    00026 #include "TuioContainer.h"
    00027
    00028 namespace TUIO {
    00029
    00036         class TuioCursor: public TuioContainer {
    00037
    00038         protected:
    00042                 int cursor_id;
    00043
    00044         public:
    00055                 TuioCursor (TuioTime ttime, long si, int ci, float xp, float yp):TuioContainer(ttime,si,xp,yp) {
    00056                         cursor_id = ci;
    00057                 };
    00058
    00068                 TuioCursor (long si, int ci, float xp, float yp):TuioContainer(si,xp,yp) {
    00069                         cursor_id = ci;
    00070                 };
    00071
    00078                 TuioCursor (TuioCursor *tcur):TuioContainer(tcur) {
    00079                         cursor_id = tcur->getCursorID();
    00080                 };
    00081
    00085                 ~TuioCursor(){};
    00086
    00091                 int getCursorID() {
    00092                         return cursor_id;
    00093                 };
    00094         };
    00095 };
    00096 #endif