Medical Imaging Interaction Toolkit  2018.4.99-eed36131
Medical Imaging Interaction Toolkit
mitkInteractionEventObserver.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef InteractionEventObserver_h
14 #define InteractionEventObserver_h
15 
16 #include "mitkInteractionEvent.h"
17 #include "mitkServiceInterface.h"
18 #include <MitkCoreExports.h>
19 
20 namespace mitk
21 {
34  {
36  virtual ~InteractionEventObserver();
59  virtual void Notify(InteractionEvent *interactionEvent, bool isHandled) = 0;
60 
61  void Disable();
62  void Enable();
63  bool IsEnabled() const;
64 
65  private:
66  bool m_IsEnabled;
67  };
68 
69 } /* namespace mitk */
70 MITK_DECLARE_SERVICE_INTERFACE(mitk::InteractionEventObserver, "org.mitk.InteractionEventObserver")
71 #endif /* InteractionEventObserver_h */
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Base class to implement InteractionEventObservers.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.