VR-Forces 4.6.1 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtOsgEventHandler.h,v $ $Revision: 1.12 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <osgViewer/ViewerEventHandlers>
17 
18 namespace osgViewer
19 {
20  class Window;
21 }
22 
23 namespace makVrv
24 {
25  class DtOsgKeyAndMouseEventListener;
26  class DtChannel;
27 
30  class DT_DLL_VRVOSG DtOsgEventHandler : public osgGA::GUIEventHandler
31  {
32  public:
35  DtChannel* channel);
36 
38  virtual ~DtOsgEventHandler();
39 
41  virtual bool handle( const osgGA::GUIEventAdapter& ea,
42  osgGA::GUIActionAdapter& );
43 
45  inline DtChannel* channel()
46  {
47  return myChannel;
48  }
49 
51  inline const DtChannel* channel() const
52  {
53  return myChannel;
54  }
55 
60  void setListener( DtOsgKeyAndMouseEventListener* listener );
61 
62  private:
65 
67  DtOsgEventHandler& operator=( const DtOsgEventHandler& );
68 
69  protected:
70 
73  };
74 }
75 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)