OpenFrames
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenFrames::WindowEventHandler Class Reference

This class handles incoming events. More...

#include <WindowProxy.hpp>

Inheritance diagram for OpenFrames::WindowEventHandler:

Public Member Functions

 WindowEventHandler (WindowProxy *window)
 
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
 
void windowModified ()
 
void setKeyPressCallback (void(*fcn)(KEYPRESS_SIG))
 
void setMouseMotionCallback (void(*fcn)(MOUSEMOTION_SIG))
 
void setButtonPressCallback (void(*fcn)(BUTTON_SIG))
 
void setButtonReleaseCallback (void(*fcn)(BUTTON_SIG))
 
void setVREventCallback (void(*fcn)(VR_SIG))
 

Protected Member Functions

void getRenderRectangle (float x, float y, unsigned int &row, unsigned int &col)
 
void selectRenderRectangle (unsigned int row, unsigned int col)
 

Protected Attributes

WindowProxy_window
 
unsigned int _currentRow
 
unsigned int _currentCol
 
void(* _keyPressCallback )(KEYPRESS_SIG)
 
void(* _mouseMotionCallback )(MOUSEMOTION_SIG)
 
void(* _buttonPressCallback )(BUTTON_SIG)
 
void(* _buttonReleaseCallback )(BUTTON_SIG)
 
void(* _vrEventCallback )(VR_SIG)
 

Detailed Description

This class handles incoming events.


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