Vision Touch Surface Library
 All Classes Files Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
IOEventManager Class Referenceabstract

The IOEventManager class is a pure abstract class that provides an interface to create any input/output event called from a GestureManager object. More...

#include <ioeventmanager.h>

Inheritance diagram for IOEventManager:
Inheritance graph
[legend]

Public Member Functions

 IOEventManager ()
 
virtual void initData ()=0
 initData This function initializes the atributes needed for using the event later on More...
 
virtual void gestureInitialize (EventData &param)=0
 gestureInitialize This function is called when the event needs to be started More...
 
virtual void gestureInProgressUpdate (EventData &param)=0
 gestureInProgressUpdate This function is called when the event is happening More...
 
virtual void gestureFinalize (EventData &param)=0
 gestureFinalize This function is called when the event needs to be finalized More...
 

Protected Attributes

bool hasBeenInit
 

Detailed Description

The IOEventManager class is a pure abstract class that provides an interface to create any input/output event called from a GestureManager object.

The idea of this class is to interface to any event using three functions: IOEventManager::gestureInitialize, IOEventManager::gestureInProgressUpdate and IOEventManager::gestureFinalize.

Constructor & Destructor Documentation

IOEventManager::IOEventManager ( )

Member Function Documentation

virtual void IOEventManager::gestureFinalize ( EventData param)
pure virtual

gestureFinalize This function is called when the event needs to be finalized

Parameters
paramdata of the frame needed for the event

This function should not be called again until IOEventManager::gestureInitialize has been called.

In the example of doing a mouse click and drag this function would unclick the button. In the example of recording a video this function should close the file descriptor.

Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.

virtual void IOEventManager::gestureInitialize ( EventData param)
pure virtual

gestureInitialize This function is called when the event needs to be started

Parameters
paramdata of the frame needed for the event

In the example of doing a mouse click and drag this would be the function when the button is clicked. In the example of recording a video the file descriptor should be created in this function.

This function should not be called again until IOEventManager::gestureFinalize has been called.

Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.

virtual void IOEventManager::gestureInProgressUpdate ( EventData param)
pure virtual

gestureInProgressUpdate This function is called when the event is happening

Parameters
paramdata of the frame needed for the event

This function could be called several times. In the example of doing a mouse click and drag this would be the function that updates the mouse position. In the exmample of recording a video each call to this function would store a frame.

Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.

virtual void IOEventManager::initData ( )
pure virtual

initData This function initializes the atributes needed for using the event later on

Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.

Member Data Documentation

bool IOEventManager::hasBeenInit
protected

The documentation for this class was generated from the following files: