synergynetframework.jme.mtinputbridge.filters
Class DeadReckoningFilter

java.lang.Object
  extended by synergynetframework.jme.mtinputbridge.filters.DeadReckoningFilter
All Implemented Interfaces:
IMultiTouchEventListener, IMultiTouchInputFilter

public class DeadReckoningFilter
extends java.lang.Object
implements IMultiTouchInputFilter

Use dead reckoning and picking system to detect false cursor position.

Author:
dcs2ima

Field Summary
static java.lang.String CURSOR_CHANGED
          The Constant CURSOR_CHANGED.
static java.lang.String CURSOR_CLICKED
          The Constant CURSOR_CLICKED.
static java.lang.String CURSOR_PRESSED
          The Constant CURSOR_PRESSED.
static java.lang.String CURSOR_RELEASED
          The Constant CURSOR_RELEASED.
static java.lang.String OBJECT_ADDED
          The Constant OBJECT_ADDED.
static java.lang.String OBJECT_CHANGED
          The Constant OBJECT_CHANGED.
static java.lang.String OBJECT_REMOVED
          The Constant OBJECT_REMOVED.
 
Constructor Summary
DeadReckoningFilter()
          Instantiates a new dead reckoning filter.
 
Method Summary
 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.
 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 setNext(IMultiTouchEventListener el)
          Sets the next.
 void update(float tpf)
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURSOR_CHANGED

public static final java.lang.String CURSOR_CHANGED
The Constant CURSOR_CHANGED.

See Also:
Constant Field Values

CURSOR_CLICKED

public static final java.lang.String CURSOR_CLICKED
The Constant CURSOR_CLICKED.

See Also:
Constant Field Values

CURSOR_PRESSED

public static final java.lang.String CURSOR_PRESSED
The Constant CURSOR_PRESSED.

See Also:
Constant Field Values

CURSOR_RELEASED

public static final java.lang.String CURSOR_RELEASED
The Constant CURSOR_RELEASED.

See Also:
Constant Field Values

OBJECT_ADDED

public static final java.lang.String OBJECT_ADDED
The Constant OBJECT_ADDED.

See Also:
Constant Field Values

OBJECT_CHANGED

public static final java.lang.String OBJECT_CHANGED
The Constant OBJECT_CHANGED.

See Also:
Constant Field Values

OBJECT_REMOVED

public static final java.lang.String OBJECT_REMOVED
The Constant OBJECT_REMOVED.

See Also:
Constant Field Values
Constructor Detail

DeadReckoningFilter

public DeadReckoningFilter()
Instantiates a new dead reckoning filter.

Method Detail

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

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

setNext

public void setNext(IMultiTouchEventListener el)
Description copied from interface: IMultiTouchInputFilter
Sets the next.

Specified by:
setNext in interface IMultiTouchInputFilter
Parameters:
el - the new next

update

public void update(float tpf)
Description copied from interface: IMultiTouchInputFilter
Update.

Specified by:
update in interface IMultiTouchInputFilter
Parameters:
tpf - the tpf