Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Moteur3D::IEventManager Class Reference

IEventManager is an abstract class that guarantees to the Window class that any implementation of IEventManager will handle every event the Window instance will trigger. More...

#include <IEventManager.h>

Inheritance diagram for Moteur3D::IEventManager:

Moteur3D::AppStarter_3DApplication Moteur3D::AppStarter_ObjectViewer List of all members.

Protected Member Functions

virtual void OnRenderScene ()=0
 The OnRenderScene() event is called every time the display needs a new frame to be rendered. OnIdle() is always called just before OnRenderScene().
virtual void OnIdle ()=0
virtual void OnResize (short width, short height)=0
 OnResize() is triggered every time the windows is resized or switched between fullscreen and windowed mode. It should at least handle resizing the openGL's viewport.
virtual void OnKey (KeyList key, bool keyDown)=0
 The OnKey() event is called every time the uses presses a key. It may be "normal" keys as well as system keys, such as escape, alt, ctrl, printstreen etc.
virtual void OnMouseMove (const MouseInformations *mouseInfo)=0
 OnMouseMove() is triggered to the event manager everytime the mouse moves into the window's bounds but no user interface's window handles the move.
virtual void OnMouseButton (const MouseInformations *mouseInfo, MouseButton button, bool buttonDown)=0
 OnMouseMove() is triggered to the event manager everytime a button is pressed or released into the window's bounds but no user interface's window handles the event.
virtual void OnMouseWheel (const MouseInformations *mouseInfo, short displacement)=0
 OnMouseMove() is triggered to the event manager everytime a button is pressed or released into the window's bounds but no user interface's window handles the event.

Friends

class Window

Detailed Description

IEventManager is an abstract class that guarantees to the Window class that any implementation of IEventManager will handle every event the Window instance will trigger.

Todo:
Check if OnMouseWheel() can be handled by UserInterface. Same for OnKey().


Member Function Documentation

virtual void Moteur3D::IEventManager::OnIdle  )  [protected, pure virtual]
 

The OnIdle() event is called every time no event, such as keyboard or windows input, needs to be handled. OnIdle() is always called just before OnRenderScene().

Implemented in Moteur3D::AppStarter_3DApplication.

virtual void Moteur3D::IEventManager::OnKey KeyList  key,
bool  keyDown
[protected, pure virtual]
 

The OnKey() event is called every time the uses presses a key. It may be "normal" keys as well as system keys, such as escape, alt, ctrl, printstreen etc.

Implemented in Moteur3D::AppStarter_3DApplication.

virtual void Moteur3D::IEventManager::OnMouseButton const MouseInformations mouseInfo,
MouseButton  button,
bool  buttonDown
[protected, pure virtual]
 

OnMouseMove() is triggered to the event manager everytime a button is pressed or released into the window's bounds but no user interface's window handles the event.

Implemented in Moteur3D::AppStarter_3DApplication.

virtual void Moteur3D::IEventManager::OnMouseMove const MouseInformations mouseInfo  )  [protected, pure virtual]
 

OnMouseMove() is triggered to the event manager everytime the mouse moves into the window's bounds but no user interface's window handles the move.

Implemented in Moteur3D::AppStarter_3DApplication, and Moteur3D::AppStarter_ObjectViewer.

virtual void Moteur3D::IEventManager::OnMouseWheel const MouseInformations mouseInfo,
short  displacement
[protected, pure virtual]
 

OnMouseMove() is triggered to the event manager everytime a button is pressed or released into the window's bounds but no user interface's window handles the event.

Implemented in Moteur3D::AppStarter_3DApplication, and Moteur3D::AppStarter_ObjectViewer.

virtual void Moteur3D::IEventManager::OnRenderScene  )  [protected, pure virtual]
 

The OnRenderScene() event is called every time the display needs a new frame to be rendered. OnIdle() is always called just before OnRenderScene().

Implemented in Moteur3D::AppStarter_3DApplication, and Moteur3D::AppStarter_ObjectViewer.

virtual void Moteur3D::IEventManager::OnResize short  width,
short  height
[protected, pure virtual]
 

OnResize() is triggered every time the windows is resized or switched between fullscreen and windowed mode. It should at least handle resizing the openGL's viewport.

Implemented in Moteur3D::AppStarter_3DApplication.


Friends And Related Function Documentation

friend class Window [friend]
 


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 15:05:52 2005 for Moteur3D by  doxygen 1.4.4