Public Member Functions | Protected Attributes

TUIO::TuioCursor Class Reference

#include <TuioCursor.h>

Inheritance diagram for TUIO::TuioCursor:
TUIO::TuioContainer TUIO::TuioPoint

List of all members.

Public Member Functions

 TuioCursor (TuioTime ttime, long si, int ci, float xp, float yp)
 TuioCursor (long si, int ci, float xp, float yp)
 TuioCursor (TuioCursor *tcur)
 ~TuioCursor ()
int getCursorID ()

Protected Attributes

int cursor_id

Detailed Description

The TuioCursor class encapsulates /tuio/2Dcur TUIO cursors.

Author:
Martin Kaltenbrunner
Version:
1.4

Constructor & Destructor Documentation

TUIO::TuioCursor::TuioCursor ( TuioTime  ttime,
long  si,
int  ci,
float  xp,
float  yp 
) [inline]

This constructor takes a TuioTime argument and assigns it along with the provided Session ID, Cursor ID, X and Y coordinate to the newly created TuioCursor.

Parameters:
ttimethe TuioTime to assign
sithe Session ID to assign
cithe Cursor ID to assign
xpthe X coordinate to assign
ypthe Y coordinate to assign
TUIO::TuioCursor::TuioCursor ( long  si,
int  ci,
float  xp,
float  yp 
) [inline]

This constructor takes the provided Session ID, Cursor ID, X and Y coordinate and assigs these values to the newly created TuioCursor.

Parameters:
sithe Session ID to assign
cithe Cursor ID to assign
xpthe X coordinate to assign
ypthe Y coordinate to assign
TUIO::TuioCursor::TuioCursor ( TuioCursor tcur ) [inline]

This constructor takes the atttibutes of the provided TuioCursor and assigs these values to the newly created TuioCursor.

Parameters:
tcurthe TuioCursor to assign
TUIO::TuioCursor::~TuioCursor (  ) [inline]

The destructor is doing nothing in particular.


Member Function Documentation

int TUIO::TuioCursor::getCursorID (  ) [inline]

Returns the Cursor ID of this TuioCursor.

Returns:
the Cursor ID of this TuioCursor

Member Data Documentation

int TUIO::TuioCursor::cursor_id [protected]

The individual cursor ID number that is assigned to each TuioCursor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines