VR-Forces 4.1 Class Documentation
DtEventProcessorInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEventProcessorInterface.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtEventProcessorInterface_H_
14 #define DtEventProcessorInterface_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtMouseEvent.h>
18 #include <vrvCore/DtUniqueID.h>
19 #include <string>
20 
23 
24 namespace makVrv
25 {
26  class DtKeyEvent;
27  class DtChannel;
28  class DtDe;
29 
37  {
38  public:
41 
43  virtual ~DtEventProcessorInterface();
44 
48  virtual bool processMouseEvent( const DtMouseEvent& ev, DtChannel& channel) = 0;
49 
53  virtual bool processKeyboardEvent( const DtKeyEvent& ev, DtChannel& channel) = 0;
54 
57  virtual const std::string& className() = 0;
58 
60  virtual void setEnabled(bool b);
61 
62  inline bool enabled() const
63  {
64  return myEnabled;
65  }
66 
67  protected:
68  bool myEnabled;
69  };
70 
71 
76  {
77 
78  public:
81  static DtWidgetEventProcessorCreator& instance( DtDe& de );
82 
84  static void registerInstance(DtDe& de,
86 
88  virtual DtEventProcessorInterface* create( DtDe& de ) = 0;
89  };
90 }
91 
92 #endif
93 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)