Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

UserEventHandler Class Reference

Event Handler class. Handles user interface events. With thanks to the osgpick example by Robert Roebling. More...

#include <UserInterface.h>

Collaboration diagram for UserEventHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UserEventHandler (osgProducer::Viewer *viewer, UserInterface *ui)
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
virtual void pick (const osgGA::GUIEventAdapter &ea)

Protected Member Functions

 ~UserEventHandler ()

Protected Attributes

UserInterface_user
osgProducer::Viewer * _viewer

Detailed Description

Event Handler class. Handles user interface events. With thanks to the osgpick example by Robert Roebling.

Definition at line 90 of file UserInterface.h.


Constructor & Destructor Documentation

UserEventHandler::UserEventHandler osgProducer::Viewer *  viewer,
UserInterface ui
 

Definition at line 39 of file UserInterface.cpp.

References _user, and _viewer.

UserEventHandler::~UserEventHandler  )  [inline, protected]
 

Definition at line 108 of file UserInterface.h.


Member Function Documentation

bool UserEventHandler::handle const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us
 

Handles various osg events.

Parameters:
ea EventAdapter describing the event.
us Passes the user events to this function.

Definition at line 44 of file UserInterface.cpp.

References _user, StateControl::pause(), pick(), UserInterface::s, and UserInterface::updateClock().

Here is the call graph for this function:

void UserEventHandler::pick const osgGA::GUIEventAdapter &  ea  )  [virtual]
 

Picking function

Parameters:
ea The EventAdapter containing the information about this event.

Definition at line 69 of file UserInterface.cpp.

References _user, _viewer, UserInterface::buttonAction(), and UserInterface::selectionAction().

Referenced by handle().

Here is the call graph for this function:


Member Data Documentation

UserInterface* UserEventHandler::_user [protected]
 

Definition at line 106 of file UserInterface.h.

Referenced by handle(), pick(), and UserEventHandler().

osgProducer::Viewer* UserEventHandler::_viewer [protected]
 

Definition at line 107 of file UserInterface.h.

Referenced by pick(), and UserEventHandler().


The documentation for this class was generated from the following files:
Generated on Mon Jun 19 10:22:24 2006 for TraplasVisualisation by  doxygen 1.4.4