![]() |
VR-Forces Development_Version Class Documentation
|
Custom OpenSceneGraph event handler to get key and mouse events. More...

Public Member Functions | |
| DtOsgEventHandler (DtOsgKeyAndMouseEventListener *listener, DtChannel *channel) | |
| CTOR. | |
| virtual | ~DtOsgEventHandler () |
| DTOR. | |
| virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &) |
| Override to handle the OSG event. | |
| DtChannel * | channel () |
| Set the corresponding channel. | |
| const DtChannel * | channel () const |
| Get the corresponding channel. | |
| void | setListener (DtOsgKeyAndMouseEventListener *listener) |
| Set the listener using this handler Set the listener to report events to. | |
Protected Attributes | |
| DtOsgKeyAndMouseEventListener * | myOsgListener |
| DtChannel * | myChannel |
Private Member Functions | |
| DtOsgEventHandler (const DtOsgEventHandler &) | |
| Unimplemented copy constructor. | |
| DtOsgEventHandler & | operator= (const DtOsgEventHandler &) |
| Unimplemented assignment operator. | |
Custom OpenSceneGraph event handler to get key and mouse events.
| makVrv::DtOsgEventHandler::DtOsgEventHandler | ( | DtOsgKeyAndMouseEventListener * | listener, |
| DtChannel * | channel | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
Unimplemented copy constructor.
|
virtual |
Override to handle the OSG event.
|
inline |
Set the corresponding channel.
|
inline |
Get the corresponding channel.
| void makVrv::DtOsgEventHandler::setListener | ( | DtOsgKeyAndMouseEventListener * | listener | ) |
Set the listener using this handler Set the listener to report events to.
The listener can come and go (since it can be destroyed/recreated by the inputDriver it's associated with)
|
private |
Unimplemented assignment operator.
|
protected |
|
protected |