keyboardEventHandler Class Reference

#include <keyboardEventHandler.h>

Inheritance diagram for keyboardEventHandler:

Inheritance graph
Collaboration diagram for keyboardEventHandler:

Collaboration graph

Public Types

enum  keyStatusType { KEY_UP, KEY_DOWN }
typedef void(*) functionType ()
typedef std::map< int, functionStatusTypekeyFunctionMap

Public Member Functions

bool addFunction (int whatKey, functionType newFunction)
bool addFunction (int whatKey, keyStatusType keyPressStatus, functionType newFunction)
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
virtual void accept (osgGA::GUIEventHandlerVisitor &v)

Protected Attributes

keyFunctionMap keyFuncMap
keyFunctionMap keyUPFuncMap

Data Structures

struct  functionStatusType

Detailed Description

Definition at line 28 of file keyboardEventHandler.h.

Member Typedef Documentation

typedef void(*) keyboardEventHandler::functionType()

Definition at line 32 of file keyboardEventHandler.h.

typedef std::map<int, functionStatusType > keyboardEventHandler::keyFunctionMap

Definition at line 51 of file keyboardEventHandler.h.

Member Enumeration Documentation

enum keyboardEventHandler::keyStatusType


Definition at line 33 of file keyboardEventHandler.h.

Member Function Documentation

bool keyboardEventHandler::addFunction ( int  whatKey,
functionType  newFunction 

Definition at line 26 of file keyboardEventHandler.cpp.

References keyFuncMap.

Referenced by addFunction(), and Scene3D::creerChutesEtAnim().

bool keyboardEventHandler::addFunction ( int  whatKey,
keyStatusType  keyPressStatus,
functionType  newFunction 

Definition at line 40 of file keyboardEventHandler.cpp.

References addFunction(), KEY_DOWN, and keyUPFuncMap.

Here is the call graph for this function:

bool keyboardEventHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
) [virtual]

Definition at line 61 of file keyboardEventHandler.cpp.

References KEY_DOWN, KEY_UP, keyFuncMap, and keyUPFuncMap.

virtual void keyboardEventHandler::accept ( osgGA::GUIEventHandlerVisitor &  v  )  [inline, virtual]

Definition at line 72 of file keyboardEventHandler.h.

Field Documentation

keyFunctionMap keyboardEventHandler::keyFuncMap [protected]

Definition at line 73 of file keyboardEventHandler.h.

Referenced by addFunction(), and handle().

keyFunctionMap keyboardEventHandler::keyUPFuncMap [protected]

Definition at line 81 of file keyboardEventHandler.h.

Referenced by addFunction(), and handle().

The documentation for this class was generated from the following files:
Generated on Tue Jun 5 16:57:18 2007 for Anidam by  doxygen 1.5.1