Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef InteractionEventObserver_h
18 #define InteractionEventObserver_h
19 
20 #include "mitkInteractionEvent.h"
21 #include "mitkServiceInterface.h"
22 #include <MitkCoreExports.h>
23 
24 namespace mitk
25 {
38  {
40  virtual ~InteractionEventObserver();
63  virtual void Notify(InteractionEvent *interactionEvent, bool isHandled) = 0;
64 
65  void Disable();
66  void Enable();
67  bool IsEnabled() const;
68 
69  private:
70  bool m_IsEnabled;
71  };
72 
73 } /* namespace mitk */
74 MITK_DECLARE_SERVICE_INTERFACE(mitk::InteractionEventObserver, "org.mitk.InteractionEventObserver")
75 #endif /* InteractionEventObserver_h */
Base class to implement InteractionEventObservers.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")