VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
21 // REMOVE THIS along with the creator later
23 
24 namespace makVrv
25 {
26  class DtKeyEvent;
27  class DtPinchGesture;
28  class DtChannel;
29  class DtDe;
30 
38  {
39  public:
42 
44  virtual ~DtEventProcessorInterface();
45 
49  virtual bool processMouseEvent( const DtMouseEvent& ev, DtChannel& channel) = 0;
50 
54  virtual bool processKeyboardEvent( const DtKeyEvent& ev, DtChannel& channel) = 0;
55 
57  virtual bool processPinchGesture( const DtPinchGesture& ev, DtChannel& channel) {return false;}
58 
61  virtual const std::string& className() = 0;
62 
64  virtual void setEnabled(bool b);
65 
66  inline bool enabled() const
67  {
68  return myEnabled;
69  }
70 
71  protected:
72  bool myEnabled;
73  };
74 
75 
80  {
81 
82  public:
85  static DtWidgetEventProcessorCreator& instance( DtDe& de );
86 
88  static void registerInstance(DtDe& de,
90 
92  virtual DtEventProcessorInterface* create( DtDe& de ) = 0;
93  };
94 }
95 
96 #endif
97 
Virtual base class.
Definition: DtVirtualBaseClass.h:22
This class encapsulates a Key event.
Definition: DtKeyEvent.h:19
DtPinchGesture represents a Pinch Multitouch Gesture.
Definition: DtPinchGesture.h:26
bool myEnabled
Definition: DtEventProcessorInterface.h:72
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:22
The abstract Channel Class.
Definition: DtChannel.h:29
Contains makVrv::DtVirtualBaseClass class.
This file contains the declaration for the class DtMouseEvent.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
A hack to create the widget event processor until accessories are implemented.
Definition: DtEventProcessorInterface.h:79
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual bool processPinchGesture(const DtPinchGesture &ev, DtChannel &channel)
Don&#39;t require a handler for pinch gestures, but make them available.
Definition: DtEventProcessorInterface.h:57
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:37
bool enabled() const
Definition: DtEventProcessorInterface.h:66
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)