synergynetframework.mtinput.luminja
Class LuminMultiTouchInput

java.lang.Object
  extended by synergynetframework.mtinput.luminja.LuminMultiTouchInput
All Implemented Interfaces:
IMultiTouchInputSource

public class LuminMultiTouchInput
extends java.lang.Object
implements IMultiTouchInputSource

Support for the Lumin multi-touch table. This implementation currently only supports cursor information - it does not support objects/fiducials.

Author:
dcs0ah1

Constructor Summary
LuminMultiTouchInput()
          Instantiates a new lumin multi touch input.
 
Method Summary
 void registerMultiTouchEventListener(IMultiTouchEventListener listener)
          Register the listener to receive multi-touch events, as defined in IMultiTouchInputListener.
 void registerMultiTouchEventListener(IMultiTouchEventListener listener, int index)
          Register multi touch event listener.
 void setClickSensitivity(long time, float distance)
          Determines whether two successive cursor add/remove events constitute a 'click'.
 void setSamePositionTolerance(float samePositionTolerance)
          Sets the same position tolerance.
 void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
          Stops the listener from receiving multi-touch events.
 void update(float tpf)
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuminMultiTouchInput

public LuminMultiTouchInput()
Instantiates a new lumin multi touch input.

Method Detail

registerMultiTouchEventListener

public void registerMultiTouchEventListener(IMultiTouchEventListener listener)
Description copied from interface: IMultiTouchInputSource
Register the listener to receive multi-touch events, as defined in IMultiTouchInputListener.

Specified by:
registerMultiTouchEventListener in interface IMultiTouchInputSource
Parameters:
listener - the listener

registerMultiTouchEventListener

public void registerMultiTouchEventListener(IMultiTouchEventListener listener,
                                            int index)
Description copied from interface: IMultiTouchInputSource
Register multi touch event listener.

Specified by:
registerMultiTouchEventListener in interface IMultiTouchInputSource
Parameters:
listener - the listener
index - the index

setClickSensitivity

public void setClickSensitivity(long time,
                                float distance)
Description copied from interface: IMultiTouchInputSource
Determines whether two successive cursor add/remove events constitute a 'click'. Determines how close together in both time (in milliseconds) and space (in coordinate mode distance).

Specified by:
setClickSensitivity in interface IMultiTouchInputSource
Parameters:
time - in milliseconds
distance - in coordinate space

setSamePositionTolerance

public void setSamePositionTolerance(float samePositionTolerance)
Sets the same position tolerance.

Parameters:
samePositionTolerance - the new same position tolerance

unregisterMultiTouchEventListener

public void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Description copied from interface: IMultiTouchInputSource
Stops the listener from receiving multi-touch events.

Specified by:
unregisterMultiTouchEventListener in interface IMultiTouchInputSource
Parameters:
listener - the listener

update

public void update(float tpf)
            throws MultiTouchInputException
Description copied from interface: IMultiTouchInputSource
Update.

Specified by:
update in interface IMultiTouchInputSource
Parameters:
tpf - the tpf
Throws:
MultiTouchInputException - the multi touch input exception