© 2006-2007 ETH Zurich

org.ximtec.igesture.io.tuio
Class TuioConnection

java.lang.Object
  extended by org.ximtec.igesture.io.tuio.TuioConnection
All Implemented Interfaces:
com.illposed.osc.OSCListener

public class TuioConnection
extends Object
implements com.illposed.osc.OSCListener

Version:
1.4
Author:
Martin Kaltenbrunner, Bjorn Puype, bpuype@gmail.com

Constructor Summary
TuioConnection()
          Default constructor
TuioConnection(int port)
          This constructor creates a client that listens to the provided port
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TuioConnection

public TuioConnection()
Default constructor


TuioConnection

public TuioConnection(int port)
This constructor creates a client that listens to the provided port

Parameters:
port - the listening port number
Method Detail

connect

public 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


disconnect

public void disconnect()
The TuioClient stops listening to TUIO messages on the configured UDP port


isConnected

public boolean isConnected()
Returns true if this TuioClient is currently connected.

Returns:
true if this TuioClient is currently connected

addTuioListener

public void addTuioListener(TuioListener listener,
                            Set<String> modifiers)
Adds the provided TuioListener to the list of registered TUIO event listeners

Parameters:
listener - the TuioListener to add
modifiers - the desired TUIO profiles

removeTuioListener

public void removeTuioListener(TuioListener listener,
                               Set<String> modifiers)
Removes the provided TuioListener from the list of registered TUIO event listeners

Parameters:
listener - the TuioListener to remove
modifiers - the desired TUIO profiles

removeAllTuioListener

public void removeAllTuioListener(Set<String> modifiers)
Removes all TuioListeners from the list of registered TUIO event listeners

Parameters:
modifiers - the desired TUIO profiles

acceptMessage

public 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

Specified by:
acceptMessage in interface com.illposed.osc.OSCListener
Parameters:
date - the time stamp of the OSC bundle
message - the received OSC message

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.