synergynetframework.mtinput
Class MultiTouchInputComponent

java.lang.Object
  extended by synergynetframework.mtinput.MultiTouchInputComponent
All Implemented Interfaces:
IMultiTouchEventListener

public class MultiTouchInputComponent
extends java.lang.Object
implements IMultiTouchEventListener

The Class MultiTouchInputComponent.


Constructor Summary
MultiTouchInputComponent(IMultiTouchInputSource source)
          Instantiates a new multi touch input component.
 
Method Summary
 void addMultiTouchInputFilter(IMultiTouchInputFilter filter)
          Adds the multi touch input filter.
 void cursorChanged(MultiTouchCursorEvent event)
          Cursor is on the table, and moves, or rotates, or changes in some way.
 void cursorClicked(MultiTouchCursorEvent event)
          Cursor clicked.
 void cursorPressed(MultiTouchCursorEvent event)
          Cursor press arriving on the table.
 void cursorReleased(MultiTouchCursorEvent event)
          Cursor left the table.
 java.util.List<java.lang.Class<? extends IMultiTouchInputFilter>> getActiveFilterClasses()
          Gets the active filter classes.
 boolean isFilterActive(java.lang.Class<? extends IMultiTouchInputFilter> filter)
          Checks if is filter active.
 boolean isMultiTouchInputEnabled()
          Checks if is multi touch input enabled.
 void objectAdded(MultiTouchObjectEvent event)
          Object/fiducial is added to the table.
 void objectChanged(MultiTouchObjectEvent event)
          Object/fiducial is changed - position or rotation.
 void objectRemoved(MultiTouchObjectEvent event)
          Object/fiducial is removed from the table.
 void registerMultiTouchEventListener(IMultiTouchEventListener listener)
          Register multi touch event listener.
 void registerMultiTouchEventListener(IMultiTouchEventListener listener, int index)
          Register multi touch event listener.
 void setMultiTouchInputEnabled(boolean isMultiTouchInputEnabled)
          Sets the multi touch input enabled.
 void setSource(IMultiTouchInputSource source)
          Sets the source.
 void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
          Unregister multi touch event listener.
 void update(float tpf)
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTouchInputComponent

public MultiTouchInputComponent(IMultiTouchInputSource source)
Instantiates a new multi touch input component.

Parameters:
source - the source
Method Detail

addMultiTouchInputFilter

public void addMultiTouchInputFilter(IMultiTouchInputFilter filter)
Adds the multi touch input filter.

Parameters:
filter - the filter

cursorChanged

public void cursorChanged(MultiTouchCursorEvent event)
Description copied from interface: IMultiTouchEventListener
Cursor is on the table, and moves, or rotates, or changes in some way.

Specified by:
cursorChanged in interface IMultiTouchEventListener
Parameters:
event - the event

cursorClicked

public void cursorClicked(MultiTouchCursorEvent event)
Description copied from interface: IMultiTouchEventListener
Cursor clicked. The sensitivity of the clicking detection is the responsibility of the appropriate IMultiTouchInputService. Event order is cursorPressed, cursorReleased, cursorClicked.

Specified by:
cursorClicked in interface IMultiTouchEventListener
Parameters:
event - the event

cursorPressed

public void cursorPressed(MultiTouchCursorEvent event)
Description copied from interface: IMultiTouchEventListener
Cursor press arriving on the table.

Specified by:
cursorPressed in interface IMultiTouchEventListener
Parameters:
event - the event

cursorReleased

public void cursorReleased(MultiTouchCursorEvent event)
Description copied from interface: IMultiTouchEventListener
Cursor left the table.

Specified by:
cursorReleased in interface IMultiTouchEventListener
Parameters:
event - the event

getActiveFilterClasses

public java.util.List<java.lang.Class<? extends IMultiTouchInputFilter>> getActiveFilterClasses()
Gets the active filter classes.

Returns:
the active filter classes

isFilterActive

public boolean isFilterActive(java.lang.Class<? extends IMultiTouchInputFilter> filter)
Checks if is filter active.

Parameters:
filter - the filter
Returns:
true, if is filter active

isMultiTouchInputEnabled

public boolean isMultiTouchInputEnabled()
Checks if is multi touch input enabled.

Returns:
true, if is multi touch input enabled

objectAdded

public void objectAdded(MultiTouchObjectEvent event)
Description copied from interface: IMultiTouchEventListener
Object/fiducial is added to the table.

Specified by:
objectAdded in interface IMultiTouchEventListener
Parameters:
event - the event

objectChanged

public void objectChanged(MultiTouchObjectEvent event)
Description copied from interface: IMultiTouchEventListener
Object/fiducial is changed - position or rotation.

Specified by:
objectChanged in interface IMultiTouchEventListener
Parameters:
event - the event

objectRemoved

public void objectRemoved(MultiTouchObjectEvent event)
Description copied from interface: IMultiTouchEventListener
Object/fiducial is removed from the table.

Specified by:
objectRemoved in interface IMultiTouchEventListener
Parameters:
event - the event

registerMultiTouchEventListener

public void registerMultiTouchEventListener(IMultiTouchEventListener listener)
Register multi touch event listener.

Parameters:
listener - the listener

registerMultiTouchEventListener

public void registerMultiTouchEventListener(IMultiTouchEventListener listener,
                                            int index)
Register multi touch event listener.

Parameters:
listener - the listener
index - the index

setMultiTouchInputEnabled

public void setMultiTouchInputEnabled(boolean isMultiTouchInputEnabled)
Sets the multi touch input enabled.

Parameters:
isMultiTouchInputEnabled - the new multi touch input enabled

setSource

public void setSource(IMultiTouchInputSource source)
Sets the source.

Parameters:
source - the new source

unregisterMultiTouchEventListener

public void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Unregister multi touch event listener.

Parameters:
listener - the listener

update

public void update(float tpf)
Update.

Parameters:
tpf - the tpf