VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
57  virtual void accept( osgGA::GUIEventHandlerVisitor& v )
58  {
59  v.visit(*this);
60  }
61 
66  void setListener( DtOsgKeyAndMouseEventListener* listener );
67 
68  private:
71 
73  DtOsgEventHandler& operator=( const DtOsgEventHandler& );
74 
75  protected:
76 
79  };
80 }
81 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)