public class TuioReader extends AbstractGestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point> implements TuioListener, Gesture3DDevice<Note3D,Point3D>
TuioConnection| Modifier and Type | Field and Description |
|---|---|
protected TuioConnection |
connection
TUIO Connection used
|
protected GestureSample |
gesture |
protected GestureSample3D |
gesture3D |
protected Note3D |
lastNote3DAdded |
protected org.sigtec.ink.Note |
lastNoteAdded |
| Constructor and Description |
|---|
TuioReader()
Default Constructor
|
TuioReader(int port)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTuioCursor(AbstractTuioCursor atcur)
This callback method is invoked by the TuioClient when a new TuioCursor is added to the session.
|
void |
addTuioMessages(Set<String> modifiers)
Set-up the processor to listen for and act on messages of the desired profiles.
|
void |
addTuioObject(AbstractTuioObject atobj)
This callback method is invoked by the TuioClient when a new TuioObject is added to the session.
|
void |
clear()
Deletes the current gesture.
|
void |
connect()
Connect the device.
|
void |
disconnect()
Disconnect the device.
|
void |
dispose()
Disposes the device.
|
List<org.sigtec.ink.Point> |
getChunks()
Returns chunks of a gesture while drawing it.
|
List<Point3D> |
getChunks3D()
Returns chunks of a gesture while drawing it.
|
Gesture<org.sigtec.ink.Note> |
getGesture()
Returns the gestures.
|
Gesture<Note3D> |
getGesture3D()
Returns the gestures.
|
TuioReaderPanel |
getPanel() |
TuioReaderPanel |
getPanel(Dimension dimension) |
void |
init()
Initializes the device.
|
void |
refresh(TuioTime ftime)
This callback method is invoked by the TuioClient to mark the end of a received TUIO message bundle.
|
void |
removeTuioCursor(AbstractTuioCursor atcur)
This callback method is invoked by the TuioClient when an existing TuioCursor is removed from the session.
|
void |
removeTuioMessages(Set<String> modifiers)
Stop the processor of listening for and act on messages of the desired profiles.
|
void |
removeTuioObject(AbstractTuioObject atobj)
This callback method is invoked by the TuioClient when an existing TuioObject is removed from the session.
|
void |
setRecogniser(Recogniser recogniser)
Set the recogniser to use.
|
void |
updateTuioCursor(AbstractTuioCursor atcur)
This callback method is invoked by the TuioClient when an existing TuioCursor is updated during the session.
|
void |
updateTuioObject(AbstractTuioObject atobj)
This callback method is invoked by the TuioClient when an existing TuioObject is updated during the session.
|
addGestureHandler, fireGestureEvent, getConnectionType, getDeviceClass, getDeviceID, getDeviceType, getName, isConnectable, isConnected, isDefaultDevice, isDisconnectable, removeAllGestureHandler, removeAllListener, removeGestureHandler, setConnectionType, setDefaultDevice, setDeviceID, setDeviceType, setIsConnected, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddGestureHandler, getConnectionType, getDeviceID, getDeviceType, getName, isConnectable, isConnected, isDefaultDevice, isDisconnectable, removeGestureHandler, setConnectionType, setDefaultDevice, setDeviceID, setDeviceType, setIsConnected, setName, toStringprotected TuioConnection connection
protected GestureSample gesture
protected org.sigtec.ink.Note lastNoteAdded
protected GestureSample3D gesture3D
protected Note3D lastNote3DAdded
public TuioReader()
recogniser - Recogniser to use.public TuioReader(int port)
port - Port to listen to.public void setRecogniser(Recogniser recogniser)
recogniser - Recogniser to use.public void connect()
Deviceconnect in interface Deviceconnect in interface Gesture3DDevice<Note3D,Point3D>connect in class AbstractGestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void disconnect()
Devicedisconnect in interface Devicedisconnect in interface Gesture3DDevice<Note3D,Point3D>disconnect in class AbstractGestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void clear()
Gesture3DDeviceclear in interface Gesture3DDevice<Note3D,Point3D>clear in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void dispose()
Gesture3DDevicedispose in interface Gesture3DDevice<Note3D,Point3D>dispose in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public List<org.sigtec.ink.Point> getChunks()
GestureDevicegetChunks in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public List<Point3D> getChunks3D()
Gesture3DDevicegetChunks3D in interface Gesture3DDevice<Note3D,Point3D>public Gesture<org.sigtec.ink.Note> getGesture()
GestureDevicegetGesture in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public Gesture<Note3D> getGesture3D()
Gesture3DDevicegetGesture3D in interface Gesture3DDevice<Note3D,Point3D>public void init()
Gesture3DDeviceinit in interface Gesture3DDevice<Note3D,Point3D>init in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void addTuioMessages(Set<String> modifiers)
modifiers - the desired TUIO profilespublic void removeTuioMessages(Set<String> modifiers)
modifiers - the desired TUIO profilespublic void addTuioCursor(AbstractTuioCursor atcur)
TuioListeneraddTuioCursor in interface TuioListeneratcur - the TuioCursor reference associated to the addTuioCursor eventpublic void addTuioObject(AbstractTuioObject atobj)
TuioListeneraddTuioObject in interface TuioListeneratobj - the TuioObject reference associated to the addTuioObject eventpublic void refresh(TuioTime ftime)
TuioListenerrefresh in interface TuioListenerftime - the TuioTime associated to the current TUIO message bundlepublic void removeTuioCursor(AbstractTuioCursor atcur)
TuioListenerremoveTuioCursor in interface TuioListeneratcur - the TuioCursor reference associated to the removeTuioCursor eventpublic void removeTuioObject(AbstractTuioObject atobj)
TuioListenerremoveTuioObject in interface TuioListeneratobj - the TuioObject reference associated to the removeTuioObject eventpublic void updateTuioCursor(AbstractTuioCursor atcur)
TuioListenerupdateTuioCursor in interface TuioListeneratcur - the TuioCursor reference associated to the updateTuioCursor eventpublic void updateTuioObject(AbstractTuioObject atobj)
TuioListenerupdateTuioObject in interface TuioListeneratobj - the TuioObject reference associated to the updateTuioObject eventpublic TuioReaderPanel getPanel()
public TuioReaderPanel getPanel(Dimension dimension)
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.