VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEventHandler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <osgViewer/ViewerEventHandlers>
14 
15 namespace osgViewer
16 {
17  class Window;
18 }
19 
20 namespace makVrv
21 {
22  class DtOsgKeyAndMouseEventListener;
23  class DtChannel;
24 
27  class DT_DLL_VRVOSG DtOsgEventHandler : public osgGA::GUIEventHandler
28  {
29  public:
32  DtChannel* channel);
33 
35  virtual ~DtOsgEventHandler();
36 
38  virtual bool handle( const osgGA::GUIEventAdapter& ea,
39  osgGA::GUIActionAdapter& );
40 
42  inline DtChannel* channel()
43  {
44  return myChannel;
45  }
46 
48  inline const DtChannel* channel() const
49  {
50  return myChannel;
51  }
52 
57  void setListener( DtOsgKeyAndMouseEventListener* listener );
58 
59  private:
62 
64  DtOsgEventHandler& operator=( const DtOsgEventHandler& );
65 
66  protected:
67 
70  };
71 }
72 
const DtChannel * channel() const
Get the corresponding channel.
Definition: DtOsgEventHandler.h:48
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtChannel * channel()
Set the corresponding channel.
Definition: DtOsgEventHandler.h:42
The abstract Channel Class.
Definition: DtChannel.h:35
DtOsgKeyAndMouseEventListener * myOsgListener
Definition: DtOsgEventHandler.h:68
OpenSceneGraph implementation of the VR-Vantage keyboard and mouse listener interface.
Definition: DtOsgKeyAndMouseEventListener.h:34
Contains makVrv::DtOsgKeyAndMouseEventListener class.
Custom OpenSceneGraph event handler to get key and mouse events.
Definition: DtOsgEventHandler.h:27
DtChannel * myChannel
Definition: DtOsgEventHandler.h:69

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)