|
TUIO C++ Developer API
|
#include <TuioContainer.h>
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 | setTuioSource (int src_id, const char *src_name, const char *src_addr) |
| virtual const char * | getTuioSourceName () const |
| virtual const char * | getTuioSourceAddress () const |
| virtual int | getTuioSourceID () const |
| 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 () const |
| virtual void | setSessionID (long s_id) |
| virtual float | getXSpeed () const |
| virtual float | getYSpeed () const |
| virtual TuioPoint | getPosition () const |
| virtual std::list< TuioPoint > | getPath () const |
| virtual float | getMotionSpeed () const |
| virtual float | getMotionAccel () const |
| virtual int | getTuioState () const |
| virtual bool | isMoving () const |
| virtual TuioPoint | predictPosition () |
Public Member Functions inherited from TUIO::TuioPoint | |
| TuioPoint (float xp, float yp) | |
| TuioPoint (TuioTime ttime, float xp, float yp) | |
| TuioPoint (TuioPoint *tpoint) | |
| virtual | ~TuioPoint () |
| void | update (TuioPoint *tpoint) |
| void | update (float xp, float yp) |
| void | update (TuioTime ttime, float xp, float yp) |
| float | getX () const |
| float | getY () const |
| float | getDistance (float xp, float yp) const |
| float | getScreenDistance (float xp, float yp, int w, int h) const |
| float | getDistance (TuioPoint *tpoint) const |
| float | getAngle (float xp, float yp) const |
| float | getAngle (TuioPoint *tpoint) const |
| float | getAngleDegrees (float xp, float yp) const |
| float | getAngleDegrees (TuioPoint *tpoint) const |
| int | getScreenX (int width) const |
| int | getScreenY (int height) const |
| TuioTime | getTuioTime () const |
| TuioTime | getStartTime () const |
| void | addPositionThreshold (float thresh) |
| void | removePositionThreshold () |
| void | addPositionFilter (float mcut, float beta) |
| void | removePositionFilter () |
Protected Attributes | |
| long | session_id |
| float | x_speed |
| float | y_speed |
| float | motion_speed |
| float | motion_accel |
| float | x_accel |
| float | y_accel |
| std::list< TuioPoint > | path |
| int | state |
| int | source_id |
| std::string | source_name |
| std::string | source_addr |
Protected Attributes inherited from TUIO::TuioPoint | |
| float | xpos |
| float | ypos |
| TuioTime | currentTime |
| TuioTime | startTime |
| OneEuroFilter * | xposFilter |
| OneEuroFilter * | yposFilter |
| float | posThreshold |
The abstract TuioContainer class defines common attributes that apply to both subclasses TuioObject and TuioCursor.
| TuioContainer::TuioContainer | ( | TuioTime | ttime, |
| long | si, | ||
| float | xp, | ||
| float | yp | ||
| ) |
This constructor takes a TuioTime argument and assigns it along with the provided Session ID, X and Y coordinate to the newly created TuioContainer.
| ttime | the TuioTime to assign |
| si | the Session ID to assign |
| xp | the X coordinate to assign |
| yp | the Y coordinate to assign |
| TuioContainer::TuioContainer | ( | long | si, |
| float | xp, | ||
| float | yp | ||
| ) |
This constructor takes the provided Session ID, X and Y coordinate and assigs these values to the newly created TuioContainer.
| si | the Session ID to assign |
| xp | the X coordinate to assign |
| yp | the Y coordinate to assign |
| TuioContainer::TuioContainer | ( | TuioContainer * | tcon | ) |
This constructor takes the atttibutes of the provided TuioContainer and assigs these values to the newly created TuioContainer.
| tcon | the TuioContainer to assign |
|
inlinevirtual |
The destructor is doing nothing in particular.
|
virtual |
Returns the motion acceleration of this TuioContainer.
|
virtual |
Returns the motion speed of this TuioContainer.
|
virtual |
Returns the path of this TuioContainer.
|
virtual |
Returns the position of this TuioContainer.
|
virtual |
Returns the Session ID of this TuioContainer.
|
virtual |
Returns the address of the TUIO source
|
virtual |
Returns the ID of the TUIO source
|
virtual |
Returns the name of the TUIO source
|
virtual |
Returns the TUIO state of this TuioContainer.
|
virtual |
Returns the X velocity of this TuioContainer.
|
virtual |
Returns the Y velocity of this TuioContainer.
|
virtual |
Returns true of this TuioContainer is moving.
Reimplemented in TUIO::TuioBlob, and TUIO::TuioObject.
|
virtual |
Assigns the REMOVE state to this TuioContainer and sets its TuioTime time stamp to the provided TuioTime argument.
| ttime | the TuioTime to assign |
|
virtual |
Sets the Session ID of this TuioContainer.
| s_id | the new Session ID for this TuioContainer |
|
virtual |
Sets the ID, name and address of the TUIO source
| src_id | the ID of the TUIO source |
| src_name | the name of the TUIO source |
| src_addr | the address of the TUIO source |
|
virtual |
This method is used to calculate the speed and acceleration values of TuioContainers with unchanged positions.
Reimplemented in TUIO::TuioBlob, and TUIO::TuioObject.
|
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.
| ttime | the TuioTime to assign |
| xp | the X coordinate to assign |
| yp | the Y coordinate to assign |
|
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.
| 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 |
Assigns the provided X and Y coordinate, X and Y velocity and acceleration to the private TuioContainer attributes. The TuioTime time stamp remains unchanged.
| 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 |
Takes the atttibutes of the provided TuioContainer and assigs these values to this TuioContainer. The TuioTime time stamp of this TuioContainer remains unchanged.
| tcon | the TuioContainer to assign |
|
protected |
The motion acceleration value.
|
protected |
The motion speed value.
|
protected |
A List of TuioPoints containing all the previous positions of the TUIO component.
|
protected |
The unique session ID number that is assigned to each TUIO object or cursor.
|
protected |
The address of the TUIO source
|
protected |
The ID of the TUIO source
|
protected |
The name of the TUIO source
|
protected |
Reflects the current state of the TuioComponent
|
protected |
The X-axis velocity value.
|
protected |
The Y-axis velocity value.