public class TuioConnection extends Object implements com.illposed.osc.OSCListener
| Constructor and Description |
|---|
TuioConnection()
Default constructor
|
TuioConnection(int port)
This constructor creates a client that listens to the provided port
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptMessage(Date date,
com.illposed.osc.OSCMessage message)
The OSC callback method where all TUIO messages are received and decoded
and where the TUIO event callbacks are dispatched
|
void |
addTuioListener(TuioListener listener,
Set<String> modifiers)
Adds the provided TuioListener to the list of registered TUIO event listeners
|
void |
connect()
The TuioClient starts listening to TUIO messages on the configured UDP port
All received TUIO messages are decoded and the resulting TUIO events are broadcasted to all registered TuioListener(3D)s
|
void |
disconnect()
The TuioClient stops listening to TUIO messages on the configured UDP port
|
boolean |
isConnected()
Returns true if this TuioClient is currently connected.
|
void |
removeAllTuioListener(Set<String> modifiers)
Removes all TuioListeners from the list of registered TUIO event listeners
|
void |
removeTuioListener(TuioListener listener,
Set<String> modifiers)
Removes the provided TuioListener from the list of registered TUIO event listeners
|
public TuioConnection()
public TuioConnection(int port)
port - the listening port numberpublic void connect()
public void disconnect()
public boolean isConnected()
public void addTuioListener(TuioListener listener, Set<String> modifiers)
listener - the TuioListener to addmodifiers - the desired TUIO profilespublic void removeTuioListener(TuioListener listener, Set<String> modifiers)
listener - the TuioListener to removemodifiers - the desired TUIO profilespublic void removeAllTuioListener(Set<String> modifiers)
modifiers - the desired TUIO profilespublic void acceptMessage(Date date, com.illposed.osc.OSCMessage message)
acceptMessage in interface com.illposed.osc.OSCListenerdate - the time stamp of the OSC bundlemessage - the received OSC messageCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.