VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgEventHandler Class Reference

Custom OpenSceneGraph event handler to get key and mouse events. More...

Inheritance diagram for makVrv::DtOsgEventHandler:
Inheritance graph
[legend]

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.
DtChannelchannel ()
 Set the corresponding channel.
const DtChannelchannel () const
 Get the corresponding channel.
void setListener (DtOsgKeyAndMouseEventListener *listener)
 Set the listener using this handler Set the listener to report events to.

Protected Attributes

DtOsgKeyAndMouseEventListenermyOsgListener
DtChannelmyChannel

Private Member Functions

 DtOsgEventHandler (const DtOsgEventHandler &)
 Unimplemented copy constructor.
DtOsgEventHandleroperator= (const DtOsgEventHandler &)
 Unimplemented assignment operator.

Detailed Description

Custom OpenSceneGraph event handler to get key and mouse events.

Constructor & Destructor Documentation

makVrv::DtOsgEventHandler::DtOsgEventHandler ( DtOsgKeyAndMouseEventListener listener,
DtChannel channel 
)

CTOR.

virtual makVrv::DtOsgEventHandler::~DtOsgEventHandler ( )
virtual

DTOR.

makVrv::DtOsgEventHandler::DtOsgEventHandler ( const DtOsgEventHandler )
private

Unimplemented copy constructor.

Member Function Documentation

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.

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.

Member Data Documentation

DtOsgKeyAndMouseEventListener* makVrv::DtOsgEventHandler::myOsgListener
protected
DtChannel* makVrv::DtOsgEventHandler::myChannel
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)