![]() |
VR-Forces 4.0.4 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. | |
| virtual void | accept (osgGA::GUIEventHandlerVisitor &v) |
| Override default accept to use correct visit implementation. | |
| 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 makVrv::DtOsgEventHandler::~DtOsgEventHandler | ( | ) | [virtual] |
DTOR.
| makVrv::DtOsgEventHandler::DtOsgEventHandler | ( | const DtOsgEventHandler & | ) | [private] |
Unimplemented copy constructor.
| virtual bool makVrv::DtOsgEventHandler::handle | ( | const osgGA::GUIEventAdapter & | ea, |
| osgGA::GUIActionAdapter & | |||
| ) | [virtual] |
Override to handle the OSG event.
| DtChannel* makVrv::DtOsgEventHandler::channel | ( | ) | [inline] |
Set the corresponding channel.
| const DtChannel* makVrv::DtOsgEventHandler::channel | ( | ) | const [inline] |
Get the corresponding channel.
| virtual void makVrv::DtOsgEventHandler::accept | ( | osgGA::GUIEventHandlerVisitor & | v | ) | [inline, virtual] |
Override default accept to use correct visit implementation.
| 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)
| DtOsgEventHandler& makVrv::DtOsgEventHandler::operator= | ( | const DtOsgEventHandler & | ) | [private] |
Unimplemented assignment operator.
DtChannel* makVrv::DtOsgEventHandler::myChannel [protected] |