VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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.
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

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

CTOR.

DTOR.

Unimplemented copy constructor.


Member Function Documentation

virtual bool makVrv::DtOsgEventHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
) [virtual]

Override to handle the OSG event.

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.

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


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)