public class TuioCursor3D extends TuioPoint3D implements AbstractTuioCursor
| Modifier and Type | Field and Description |
|---|---|
protected int |
cursor_id
The individual cursor ID number that is assigned to each TuioCursor3D.
|
protected float |
motion_accel
The motion acceleration value.
|
protected float |
motion_speed
The motion speed value.
|
protected Vector<TuioPoint3D> |
path
A Vector of TuioPoint3Ds containing all the previous positions of the TUIO component.
|
protected long |
session_id
The unique session ID number that is assigned to each TUIO object or cursor.
|
protected int |
state
Reflects the current state of the TuioComponent
|
static int |
TUIO_ACCELERATING
Defines the ACCELERATING state.
|
static int |
TUIO_ADDED
Defines the ADDED state.
|
static int |
TUIO_DECELERATING
Defines the DECELERATING state.
|
static int |
TUIO_REMOVED
Defines the REMOVED state.
|
static int |
TUIO_STOPPED
Defines the STOPPED state.
|
protected float |
x_speed
The X-axis velocity value.
|
protected float |
y_speed
The Y-axis velocity value.
|
protected float |
z_speed
The Z-axis velocity value.
|
currentTime, startTime, xpos, XY, XZ, ypos, YZ, zpos| Constructor and Description |
|---|
TuioCursor3D(long si,
int ci,
float xp,
float yp,
float zp)
This constructor takes the provided Session ID, Cursor ID, X, Y and Z coordinate
and assigns these values to the newly created TuioCursor3D.
|
TuioCursor3D(TuioCursor3D tcur)
This constructor takes the attributes of the provided TuioCursor3D
and assigns these values to the newly created TuioCursor3D.
|
TuioCursor3D(TuioTime ttime,
long si,
int ci,
float xp,
float yp,
float zp)
This constructor takes a TuioTime argument and assigns it along with the provided
Session ID, Cursor ID, X, Y and Z coordinate to the newly created TuioCursor3D.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCursorID()
Returns the Cursor ID of this TuioCursor3D.
|
float |
getMotionAccel()
Returns the motion acceleration of this TuioContainer3D.
|
float |
getMotionSpeed()
Returns the motion speed of this TuioContainer3D.
|
Vector<TuioPoint3D> |
getPath()
Returns the path of this TuioContainer3D.
|
TuioPoint3D |
getPosition()
Returns the position of this TuioContainer3D.
|
long |
getSessionID()
Returns the Session ID of this TuioContainer3D.
|
int |
getTuioState()
Returns the TUIO state of this TuioContainer3D.
|
float |
getXSpeed()
Returns the X velocity of this TuioContainer3D.
|
float |
getYSpeed()
Returns the Y velocity of this TuioContainer3D.
|
float |
getZSpeed()
Returns the Z velocity of this TuioContainer3D.
|
boolean |
isMoving()
Returns true of this TuioContainer3D is moving.
|
void |
remove(TuioTime ttime)
Assigns the REMOVE state to this TuioContainer3D and sets
its TuioTime time stamp to the provided TuioTime argument.
|
void |
stop(TuioTime ttime)
This method is used to calculate the speed and acceleration values of
TuioContainer3Ds with unchanged positions.
|
void |
update(float xp,
float yp,
float zp,
float xs,
float ys,
float zs,
float ma)
Assigns the provided X, Y and Z coordinate; X, Y and Z velocity and acceleration
to the private TuioContainer attributes.
|
void |
update(org.ximtec.igesture.io.tuio.tuio3D.TuioContainer3D tcon)
Takes the attributes of the provided TuioContainer3D
and assigns these values to this TuioContainer3D.
|
void |
update(TuioTime ttime,
float xp,
float yp,
float zp)
Takes a TuioTime argument and assigns it along with the provided
X, Y and Z coordinate to the private TuioContainer3D attributes.
|
void |
update(TuioTime ttime,
float xp,
float yp,
float zp,
float xs,
float ys,
float zs,
float ma)
Takes a TuioTime argument and assigns it along with the provided
X, Y and Z coordinate; X, Y and Z velocity and acceleration
to the private TuioContainer3D attributes.
|
getAngle, getAngle, getAngleDegrees, getAngleDegrees, getDistance, getDistance, getScreenX, getScreenY, getScreenZ, getStartTime, getTuioTime, getX, getY, getZ, update, updateprotected int cursor_id
protected long session_id
protected float x_speed
protected float y_speed
protected float z_speed
protected float motion_speed
protected float motion_accel
protected Vector<TuioPoint3D> path
public static final int TUIO_ADDED
public static final int TUIO_ACCELERATING
public static final int TUIO_DECELERATING
public static final int TUIO_STOPPED
public static final int TUIO_REMOVED
protected int state
public TuioCursor3D(TuioTime ttime, long si, int ci, float xp, float yp, float zp)
ttime - the TuioTime to assignsi - the Session ID to assignci - the Cursor ID to assignxp - the X coordinate to assignyp - the Y coordinate to assignzp - the Z coordinate to assignpublic TuioCursor3D(long si,
int ci,
float xp,
float yp,
float zp)
si - the Session ID to assignci - the Cursor ID to assignxp - the X coordinate to assignyp - the Y coordinate to assignzp - the Z coordinate to assignpublic TuioCursor3D(TuioCursor3D tcur)
tcur - the TuioCursor to assignpublic int getCursorID()
public void update(TuioTime ttime, float xp, float yp, float zp)
update in class TuioPoint3Dttime - the TuioTime to assignxp - the X coordinate to assignyp - the Y coordinate to assignzp - the Z coordinate to assignpublic void stop(TuioTime ttime)
public void update(TuioTime ttime, float xp, float yp, float zp, float xs, float ys, float zs, float ma)
ttime - the TuioTime to assignxp - the X coordinate to assignyp - the Y coordinate to assignzp - the Z coordinate to assignxs - the X velocity to assignys - the Y velocity to assignzs - the Z velocity to assignma - the acceleration to assignpublic void update(float xp,
float yp,
float zp,
float xs,
float ys,
float zs,
float ma)
xp - the X coordinate to assignyp - the Y coordinate to assignzp - the Z coordinate to assignxs - the X velocity to assignys - the Y velocity to assignzs - the Z velocity to assignma - the acceleration to assignpublic void update(org.ximtec.igesture.io.tuio.tuio3D.TuioContainer3D tcon)
tcon - the TuioContainer3D to assignpublic void remove(TuioTime ttime)
ttime - the TuioTime to assignpublic long getSessionID()
public float getXSpeed()
public float getYSpeed()
public float getZSpeed()
public TuioPoint3D getPosition()
public Vector<TuioPoint3D> getPath()
public float getMotionSpeed()
public float getMotionAccel()
public int getTuioState()
public boolean isMoving()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.