VR-Forces Developer's Guide
 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 
9 
10 #ifndef DtEventProcessorInterface_H_
11 #define DtEventProcessorInterface_H_
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtMouseEvent.h>
15 #include <vrvCore/DtUniqueID.h>
16 #include <string>
17 
18 // REMOVE THIS along with the creator later
20 
21 namespace makVrv
22 {
23  class DtKeyEvent;
24  class DtPinchGesture;
25  class DtChannel;
26  class DtDe;
27 
35  {
36  public:
39 
41  virtual ~DtEventProcessorInterface();
42 
46  virtual bool processMouseEvent( const DtMouseEvent& ev, DtChannel& channel) = 0;
47 
51  virtual bool processKeyboardEvent( const DtKeyEvent& ev, DtChannel& channel) = 0;
52 
54  virtual bool processPinchGesture( const DtPinchGesture& ev, DtChannel& channel) {return false;}
55 
58  virtual const std::string& className() = 0;
59 
61  virtual void setEnabled(bool b);
62 
63  inline bool enabled() const
64  {
65  return myEnabled;
66  }
67 
68  protected:
69  bool myEnabled;
70  };
71 
72 
77  {
78 
79  public:
82  static DtWidgetEventProcessorCreator& instance( DtDe& de );
83 
85  static void registerInstance(DtDe& de,
87 
89  virtual DtEventProcessorInterface* create( DtDe& de ) = 0;
90  };
91 }
92 
93 #endif
94 
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
This class encapsulates a Key event.
Definition: DtKeyEvent.h:16
DtPinchGesture represents a Pinch Multitouch Gesture. Instances of the DtPinchGesture class are used ...
Definition: DtPinchGesture.h:26
bool myEnabled
Definition: DtEventProcessorInterface.h:69
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:19
The abstract Channel Class.
Definition: DtChannel.h:35
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:76
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
virtual bool processPinchGesture(const DtPinchGesture &ev, DtChannel &channel)
Don&#39;t require a handler for pinch gestures, but make them available.
Definition: DtEventProcessorInterface.h:54
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34
bool enabled() const
Definition: DtEventProcessorInterface.h:63
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)