diff -r 000000000000 -r 6fefd4afe506 front_processing/extern/TUIO_JAVA/doc/TUIO/TuioPoint.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/front_processing/extern/TUIO_JAVA/doc/TUIO/TuioPoint.html Fri Mar 09 14:52:11 2012 +0100 @@ -0,0 +1,747 @@ + + + +
+ +
+
+
|
++ + | +|||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||
+java.lang.Object ++TUIO.TuioPoint +
public class TuioPoint
+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. +
+ +
+
| +Field Summary | +|
|---|---|
+protected TuioTime |
+currentTime
+
++ The time stamp of the last update represented as TuioTime (time since session start) |
+
+protected TuioTime |
+startTime
+
++ The creation time of this TuioPoint represented as TuioTime (time since session start) |
+
+protected float |
+xpos
+
++ X coordinate, representated as a floating point value in a range of 0..1 |
+
+protected float |
+ypos
+
++ Y coordinate, representated as a floating point value in a range of 0..1 |
+
| +Constructor Summary | +|
|---|---|
TuioPoint()
+
++ The default constructor takes no arguments and sets + its coordinate attributes to zero and its time stamp to the current session time. |
+|
TuioPoint(float xp,
+ float yp)
+
++ This constructor takes two floating point coordinate arguments and sets + its coordinate attributes to these values and its time stamp to the current session time. |
+|
TuioPoint(TuioPoint tpoint)
+
++ 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. |
+|
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. |
+|
| +Method Summary | +|
|---|---|
+ float |
+getAngle(float xp,
+ float yp)
+
++ Returns the angle to the provided coordinates |
+
+ float |
+getAngle(TuioPoint tpoint)
+
++ Returns the angle to the provided TuioPoint |
+
+ float |
+getAngleDegrees(float xp,
+ float yp)
+
++ Returns the angle in degrees to the provided coordinates |
+
+ float |
+getAngleDegrees(TuioPoint tpoint)
+
++ Returns the angle in degrees to the provided TuioPoint |
+
+ float |
+getDistance(float xp,
+ float yp)
+
++ Returns the distance to the provided coordinates |
+
+ float |
+getDistance(TuioPoint tpoint)
+
++ Returns the distance to the provided TuioPoint |
+
+ int |
+getScreenX(int width)
+
++ Returns the X coordinate in pixels relative to the provided screen width. |
+
+ int |
+getScreenY(int height)
+
++ Returns the Y coordinate in pixels relative to the provided screen height. |
+
+ TuioTime |
+getStartTime()
+
++ Returns the start time of this TuioPoint as TuioTime. |
+
+ TuioTime |
+getTuioTime()
+
++ Returns the time stamp of this TuioPoint as TuioTime. |
+
+ float |
+getX()
+
++ Returns the X coordinate of this TuioPoint. |
+
+ float |
+getY()
+
++ Returns the Y coordinate of this TuioPoint. |
+
+ void |
+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. |
+
+ void |
+update(TuioPoint tpoint)
+
++ Takes a TuioPoint argument and updates its coordinate attributes + to the coordinates of the provided TuioPoint and leaves its time stamp unchanged. |
+
+ void |
+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. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected float xpos+
+
+protected float ypos+
+
+protected TuioTime currentTime+
+
+protected TuioTime startTime+
+
| +Constructor Detail | +
|---|
+public TuioPoint()+
+
+public TuioPoint(float xp, + float yp)+
+
xp - the X coordinate to assignyp - the Y coordinate to assign+public TuioPoint(TuioPoint tpoint)+
+
tpoint - the TuioPoint to assign+public TuioPoint(TuioTime ttime, + float xp, + float yp)+
+
ttime - the TuioTime to assignxp - the X coordinate to assignyp - the Y coordinate to assign| +Method Detail | +
|---|
+public void update(TuioPoint tpoint)+
+
tpoint - the TuioPoint to assign+public void update(float xp, + float yp)+
+
xp - the X coordinate to assignyp - the Y coordinate to assign+public void update(TuioTime ttime, + float xp, + float yp)+
+
ttime - the TuioTime to assignxp - the X coordinate to assignyp - the Y coordinate to assign+public float getX()+
+
+public float getY()+
+
+public float getDistance(float xp, + float yp)+
+
xp - the X coordinate of the distant pointyp - the Y coordinate of the distant point
++public float getDistance(TuioPoint tpoint)+
+
tpoint - the distant TuioPoint
++public float getAngle(float xp, + float yp)+
+
xp - the X coordinate of the distant pointyp - the Y coordinate of the distant point
++public float getAngle(TuioPoint tpoint)+
+
tpoint - the distant TuioPoint
++public float getAngleDegrees(float xp, + float yp)+
+
xp - the X coordinate of the distant pointyp - the Y coordinate of the distant point
++public float getAngleDegrees(TuioPoint tpoint)+
+
tpoint - the distant TuioPoint
++public int getScreenX(int width)+
+
width - the screen width
++public int getScreenY(int height)+
+
height - the screen height
++public TuioTime getTuioTime()+
+
+public TuioTime getStartTime()+
+
+
+
|
++ + | +|||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||