eq::EventHandler Class Reference

#include <eventHandler.h>

Inheritance diagram for eq::EventHandler:

Inheritance graph
[legend]
Collaboration diagram for eq::EventHandler:

Collaboration graph
[legend]

List of all members.


Detailed Description

Base class for window system-specific event handlers.

Definition at line 20 of file eventHandler.h.


Public Member Functions

virtual void deregisterPipe (Pipe *pipe)=0
 Deregister a pipe for event handling.

Static Public Member Functions

static EventHandlerregisterPipe (Pipe *pipe)
 Register a pipe for event handling and return the appropriate event handler.

Protected Member Functions

 EventHandler ()
 Constructs a new event handler.
virtual ~EventHandler ()
 Destructs the event handler.
void _computePointerDelta (const Window *window, Event &event)
 Compute the mouse move delta from the previous pointer event.
void _getRenderContext (const Window *window, Event &event)
 Find and set the rendering context at the mouse position.

Protected Attributes

Event _lastPointerEvent
 The previous pointer event to compute mouse movement deltas.
const Window_lastEventWindow
 The window of the previous pointer event.

Constructor & Destructor Documentation

eq::EventHandler::EventHandler (  )  [inline, protected]

Constructs a new event handler.

Definition at line 41 of file eventHandler.h.

virtual eq::EventHandler::~EventHandler (  )  [inline, protected, virtual]

Destructs the event handler.

Definition at line 44 of file eventHandler.h.


Member Function Documentation

EventHandler * eq::EventHandler::registerPipe ( Pipe pipe  )  [static]

Register a pipe for event handling and return the appropriate event handler.

Parameters:
pipe the pipe.
Returns:
the event handler for the pipe, can be 0.

Definition at line 21 of file eventHandler.cpp.

References eq::Pipe::getWindowSystem().

Referenced by eq::Pipe::initEventHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void eq::EventHandler::deregisterPipe ( Pipe pipe  )  [pure virtual]

Deregister a pipe for event handling.

Parameters:
pipe the pipe.

Implemented in eq::AGLEventHandler, eq::GLXEventHandler, and eq::WGLEventHandler.

Referenced by eq::Pipe::exitEventHandler().

Here is the caller graph for this function:

void eq::EventHandler::_computePointerDelta ( const Window window,
Event &  event 
) [protected]

Compute the mouse move delta from the previous pointer event.

Definition at line 44 of file eventHandler.cpp.

References _lastEventWindow, and _lastPointerEvent.

void eq::EventHandler::_getRenderContext ( const Window window,
Event &  event 
) [protected]

Find and set the rendering context at the mouse position.

Definition at line 74 of file eventHandler.cpp.

References eq::Window::getRenderContext().

Here is the call graph for this function:


Member Data Documentation

The previous pointer event to compute mouse movement deltas.

Definition at line 53 of file eventHandler.h.

Referenced by _computePointerDelta().

The window of the previous pointer event.

Definition at line 56 of file eventHandler.h.

Referenced by _computePointerDelta().


The documentation for this class was generated from the following files:
Generated on Sat Dec 6 12:01:46 2008 for Equalizer 0.6 by  doxygen 1.5.5