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
mitkInteractionEventHandler.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 MITKEVENTHANDLER_H_
18 #define MITKEVENTHANDLER_H_
19 
20 #include "itkLightObject.h"
21 #include "itkObjectFactory.h"
22 
23 #include "mitkCommon.h"
24 #include "mitkEventConfig.h"
25 #include "mitkPropertyList.h"
26 #include <MitkCoreExports.h>
27 
28 #include <string>
29 
30 namespace us
31 {
32  class Module;
33 }
34 
35 namespace mitk
36 {
43  class InteractionEvent;
44  class MITKCORE_EXPORT InteractionEventHandler : public itk::Object
45  {
46  public:
48 
49 
63  bool SetEventConfig(const std::string &filename, const us::Module *module = nullptr);
64 
76  bool SetEventConfig(const EventConfig &config);
77 
82  EventConfig GetEventConfig() const;
83 
96  bool AddEventConfig(const std::string &filename, const us::Module *module = nullptr);
97 
109  bool AddEventConfig(const EventConfig &config);
110 
111  protected:
113  virtual ~InteractionEventHandler();
114 
118  PropertyList::Pointer GetAttributes() const;
119 
120  std::string MapToEventVariant(InteractionEvent *interactionEvent);
121 
126  virtual void ConfigurationChanged();
127 
128  private:
129  EventConfig m_EventConfig;
130  };
131 
132 } /* namespace mitk */
133 #endif /* MITKEVENTHANDLER_H_ */
#define MITKCORE_EXPORT
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
Key-value list holding instances of BaseProperty.
static const std::string filename
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Configuration Object for Statemachines.