#include <TuioContainer.h>
List of all members.
Public Member Functions |
| TuioContainer (TuioTime ttime, long si, float xp, float yp) |
| TuioContainer (long si, float xp, float yp) |
| TuioContainer (TuioContainer *tcon) |
virtual | ~TuioContainer () |
virtual void | update (TuioTime ttime, float xp, float yp) |
virtual void | stop (TuioTime ttime) |
virtual void | update (TuioTime ttime, float xp, float yp, float xs, float ys, float ma) |
virtual void | update (float xp, float yp, float xs, float ys, float ma) |
virtual void | update (TuioContainer *tcon) |
virtual void | remove (TuioTime ttime) |
virtual long | getSessionID () |
virtual float | getXSpeed () |
virtual float | getYSpeed () |
virtual TuioPoint | getPosition () |
virtual std::list< TuioPoint > | getPath () |
virtual float | getMotionSpeed () |
virtual float | getMotionAccel () |
virtual int | getTuioState () |
virtual bool | isMoving () |
Protected Attributes |
long | session_id |
float | x_speed |
float | y_speed |
float | motion_speed |
float | motion_accel |
std::list< TuioPoint > | path |
int | state |
Detailed Description
The abstract TuioContainer class defines common attributes that apply to both subclasses TuioObject and TuioCursor.
- Author:
- Martin Kaltenbrunner
- Version:
- 1.4
Constructor & Destructor Documentation
TUIO::TuioContainer::TuioContainer |
( |
TuioTime |
ttime, |
|
|
long |
si, |
|
|
float |
xp, |
|
|
float |
yp |
|
) |
| [inline] |
This constructor takes a TuioTime argument and assigns it along with the provided Session ID, X and Y coordinate to the newly created TuioContainer.
- Parameters:
-
ttime | the TuioTime to assign |
si | the Session ID to assign |
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
TUIO::TuioContainer::TuioContainer |
( |
long |
si, |
|
|
float |
xp, |
|
|
float |
yp |
|
) |
| [inline] |
This constructor takes the provided Session ID, X and Y coordinate and assigs these values to the newly created TuioContainer.
- Parameters:
-
si | the Session ID to assign |
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
TUIO::TuioContainer::TuioContainer |
( |
TuioContainer * |
tcon ) |
[inline] |
This constructor takes the atttibutes of the provided TuioContainer and assigs these values to the newly created TuioContainer.
- Parameters:
-
virtual TUIO::TuioContainer::~TuioContainer |
( |
) |
[inline, virtual] |
The destructor is doing nothing in particular.
Member Function Documentation
virtual float TUIO::TuioContainer::getMotionAccel |
( |
) |
[inline, virtual] |
virtual float TUIO::TuioContainer::getMotionSpeed |
( |
) |
[inline, virtual] |
virtual std::list<TuioPoint> TUIO::TuioContainer::getPath |
( |
) |
[inline, virtual] |
virtual TuioPoint TUIO::TuioContainer::getPosition |
( |
) |
[inline, virtual] |
virtual long TUIO::TuioContainer::getSessionID |
( |
) |
[inline, virtual] |
virtual int TUIO::TuioContainer::getTuioState |
( |
) |
[inline, virtual] |
virtual float TUIO::TuioContainer::getXSpeed |
( |
) |
[inline, virtual] |
virtual float TUIO::TuioContainer::getYSpeed |
( |
) |
[inline, virtual] |
virtual bool TUIO::TuioContainer::isMoving |
( |
) |
[inline, virtual] |
virtual void TUIO::TuioContainer::remove |
( |
TuioTime |
ttime ) |
[inline, virtual] |
virtual void TUIO::TuioContainer::stop |
( |
TuioTime |
ttime ) |
[inline, virtual] |
This method is used to calculate the speed and acceleration values of TuioContainers with unchanged positions.
Reimplemented in TUIO::TuioObject.
virtual void TUIO::TuioContainer::update |
( |
TuioTime |
ttime, |
|
|
float |
xp, |
|
|
float |
yp |
|
) |
| [inline, virtual] |
Takes a TuioTime argument and assigns it along with the provided X and Y coordinate to the private TuioContainer attributes. The speed and accleration values are calculated accordingly.
- Parameters:
-
ttime | the TuioTime to assign |
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
Reimplemented from TUIO::TuioPoint.
virtual void TUIO::TuioContainer::update |
( |
TuioContainer * |
tcon ) |
[inline, virtual] |
virtual void TUIO::TuioContainer::update |
( |
TuioTime |
ttime, |
|
|
float |
xp, |
|
|
float |
yp, |
|
|
float |
xs, |
|
|
float |
ys, |
|
|
float |
ma |
|
) |
| [inline, virtual] |
Takes a TuioTime argument and assigns it along with the provided X and Y coordinate, X and Y velocity and acceleration to the private TuioContainer attributes.
- Parameters:
-
ttime | the TuioTime to assign |
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
xs | the X velocity to assign |
ys | the Y velocity to assign |
ma | the acceleration to assign |
virtual void TUIO::TuioContainer::update |
( |
float |
xp, |
|
|
float |
yp, |
|
|
float |
xs, |
|
|
float |
ys, |
|
|
float |
ma |
|
) |
| [inline, virtual] |
Assigns the provided X and Y coordinate, X and Y velocity and acceleration to the private TuioContainer attributes. The TuioTime time stamp remains unchanged.
- Parameters:
-
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
xs | the X velocity to assign |
ys | the Y velocity to assign |
ma | the acceleration to assign |
Member Data Documentation
The motion acceleration value.
A List of TuioPoints containing all the previous positions of the TUIO component.
The unique session ID number that is assigned to each TUIO object or cursor.
Reflects the current state of the TuioComponent
The X-axis velocity value.
The Y-axis velocity value.
The documentation for this class was generated from the following file: