#include <TuioPoint.h>
|
| 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 () |
|
The TuioPoint class on the one hand is a simple container and utility class to handle TUIO positions in general, on the other hand the TuioPoint is the base class for the TuioCursor and TuioObject classes.
- Author
- Martin Kaltenbrunner
- Version
- 1.1.6
◆ TuioPoint() [1/3]
TuioPoint::TuioPoint |
( |
float |
xp, |
|
|
float |
yp |
|
) |
| |
The default constructor takes no arguments and sets its coordinate attributes to zero and its time stamp to the current session time.
◆ TuioPoint() [2/3]
TuioPoint::TuioPoint |
( |
TuioTime |
ttime, |
|
|
float |
xp, |
|
|
float |
yp |
|
) |
| |
This constructor takes a TuioTime object and two floating point coordinate arguments and sets its coordinate attributes to these values and its time stamp to the provided TUIO time object.
- Parameters
-
ttime | the TuioTime to assign |
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
◆ TuioPoint() [3/3]
This constructor takes a TuioPoint argument and sets its coordinate attributes to the coordinates of the provided TuioPoint and its time stamp to the current session time.
- Parameters
-
◆ ~TuioPoint()
virtual TUIO::TuioPoint::~TuioPoint |
( |
| ) |
|
|
inlinevirtual |
The destructor is doing nothing in particular.
◆ getAngle() [1/2]
float TuioPoint::getAngle |
( |
float |
xp, |
|
|
float |
yp |
|
) |
| const |
Returns the angle to the provided coordinates
- Parameters
-
xp | the X coordinate of the distant point |
yp | the Y coordinate of the distant point |
- Returns
- the angle to the provided coordinates
◆ getAngle() [2/2]
float TuioPoint::getAngle |
( |
TuioPoint * |
tpoint | ) |
const |
Returns the angle to the provided TuioPoint
- Parameters
-
- Returns
- the angle to the provided TuioPoint
◆ getAngleDegrees() [1/2]
float TuioPoint::getAngleDegrees |
( |
float |
xp, |
|
|
float |
yp |
|
) |
| const |
Returns the angle in degrees to the provided coordinates
- Parameters
-
xp | the X coordinate of the distant point |
yp | the Y coordinate of the distant point |
- Returns
- the angle in degrees to the provided TuioPoint
◆ getAngleDegrees() [2/2]
float TuioPoint::getAngleDegrees |
( |
TuioPoint * |
tpoint | ) |
const |
Returns the angle in degrees to the provided TuioPoint
- Parameters
-
- Returns
- the angle in degrees to the provided TuioPoint
◆ getDistance() [1/2]
float TuioPoint::getDistance |
( |
float |
xp, |
|
|
float |
yp |
|
) |
| const |
Returns the distance to the provided coordinates
- Parameters
-
xp | the X coordinate of the distant point |
yp | the Y coordinate of the distant point |
- Returns
- the distance to the provided coordinates
◆ getDistance() [2/2]
float TuioPoint::getDistance |
( |
TuioPoint * |
tpoint | ) |
const |
Returns the distance to the provided TuioPoint
- Parameters
-
- Returns
- the distance to the provided TuioPoint
◆ getScreenDistance()
float TuioPoint::getScreenDistance |
( |
float |
xp, |
|
|
float |
yp, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| const |
Returns the distance to the provided coordinates
- Parameters
-
xp | the X coordinate of the distant point |
yp | the Y coordinate of the distant point |
- Returns
- the distance to the provided coordinates
◆ getScreenX()
int TuioPoint::getScreenX |
( |
int |
width | ) |
const |
Returns the X coordinate in pixels relative to the provided screen width.
- Parameters
-
- Returns
- the X coordinate of this TuioPoint in pixels relative to the provided screen width
◆ getStartTime()
TuioTime TuioPoint::getStartTime |
( |
| ) |
const |
◆ getTuioTime()
TuioTime TuioPoint::getTuioTime |
( |
| ) |
const |
◆ getX()
float TuioPoint::getX |
( |
| ) |
const |
◆ getY()
float TuioPoint::getY |
( |
| ) |
const |
◆ update() [1/3]
Takes a TuioPoint argument and updates its coordinate attributes to the coordinates of the provided TuioPoint and leaves its time stamp unchanged.
- Parameters
-
◆ update() [2/3]
void TuioPoint::update |
( |
float |
xp, |
|
|
float |
yp |
|
) |
| |
Takes two floating point coordinate arguments and updates its coordinate attributes to the coordinates of the provided TuioPoint and leaves its time stamp unchanged.
- Parameters
-
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
◆ update() [3/3]
void TuioPoint::update |
( |
TuioTime |
ttime, |
|
|
float |
xp, |
|
|
float |
yp |
|
) |
| |
Takes a TuioTime object and two floating point coordinate arguments and updates its coordinate attributes to the coordinates of the provided TuioPoint and its time stamp to the provided TUIO time object.
- Parameters
-
ttime | the TuioTime to assign |
xp | the X coordinate to assign |
yp | the Y coordinate to assign |
◆ currentTime
The time stamp of the last update represented as TuioTime (time since session start)
◆ startTime
The creation time of this TuioPoint represented as TuioTime (time since session start)
◆ xpos
float TUIO::TuioPoint::xpos |
|
protected |
X coordinate, representated as a floating point value in a range of 0..1
◆ ypos
float TUIO::TuioPoint::ypos |
|
protected |
X coordinate, representated as a floating point value in a range of 0..1
The documentation for this class was generated from the following files: