BrailleTutorNS::ShortStylusSuppressor Class Reference

Filters out spurious stylus-related BaseIOEvents. More...

#include <ShortStylusSuppressor.h>

Inheritance diagram for BrailleTutorNS::ShortStylusSuppressor:

Inheritance graph
[legend]
Collaboration diagram for BrailleTutorNS::ShortStylusSuppressor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ShortStylusSuppressor (const TimeInterval &threshold=0.75)
 Constructor.
void setBaseIOEventHandler (BaseIOEventHandler &bioeh)
 Register a BaseIOEventHandler with this ShortStylusSuppressor.
void pollBaseIOEvents (BaseIOEventHandler &bioeh)
 Call a BaseIOEventHandler functor on the events list immediately.
void setThreshold (const TimeInterval &threshold)
 Set the minimum insertion/withdrawal-time threshold for stylus events.
virtual void operator() (std::deque< BaseIOEvent > &events)
 BaseIOEvent handler callback.
virtual ~ShortStylusSuppressor ()
 Destructor.


Detailed Description

Filters out spurious stylus-related BaseIOEvents.

Some BrailleTutors generate spurious stylus events---when hands are rubbed across the Tutor, for example, or when a stylus is being inserted or removed and makes weak electrical contact. These spurious events are typically pretty short. A ShortStylusSuppressor will filter stylus-related BaseIOEvents where the delay between STYLUS_DOWN and STYLUS_UP is too brief to have been real. All other BaseIOEvents are passed through. See additional note in ShortStylusSuppressor.h


The documentation for this class was generated from the following file:
Generated on Fri Nov 16 14:50:27 2007 for Braille Tutor Interface Library by  doxygen 1.5.3