VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. More...
 
virtual ~DtOsgEventHandler ()
 DTOR. More...
 
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
 Override to handle the OSG event. More...
 
DtChannelchannel ()
 Set the corresponding channel. More...
 
const DtChannelchannel () const
 Get the corresponding channel. More...
 
void setListener (DtOsgKeyAndMouseEventListener *listener)
 Set the listener using this handler Set the listener to report events to. More...
 

Protected Attributes

DtOsgKeyAndMouseEventListenermyOsgListener
 
DtChannelmyChannel
 

Private Member Functions

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

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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)