Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkEventConfig.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 mitkEventConfig_h
14 #define mitkEventConfig_h
15 
16 #include <MitkCoreExports.h>
17 
18 #include "mitkPropertyList.h"
19 #include "usSharedData.h"
20 
21 #include "itkSmartPointer.h"
22 
23 namespace us
24 {
25  class Module;
26 }
27 
28 namespace mitk
29 {
30  class InteractionEvent;
31  struct EventConfigPrivate;
32 
45  {
46  public:
48 
54  EventConfig();
55  EventConfig(const EventConfig &other);
56 
67  EventConfig(const std::string &filename, const us::Module *module = nullptr);
68 
78  EventConfig(std::istream &inputStream);
79 
117  EventConfig(const std::vector<PropertyList::Pointer> &configDescription);
118 
119  EventConfig &operator=(const EventConfig &other);
120 
121  ~EventConfig();
122 
127  bool IsValid() const;
128 
142  bool AddConfig(const std::string &filename, const us::Module *module = nullptr);
143 
156  bool AddConfig(const EventConfig &config);
157 
161  void ClearConfig();
162 
167  PropertyList::Pointer GetAttributes() const;
168 
181  std::string GetMappedEvent(const EventType &interactionEvent) const;
182 
183  private:
185  };
186 
187 } // namespace mitk
188 
189 #endif
us
Definition: mitkAbstractFileReader.h:29
itk::SmartPointer< InteractionEvent >
mitk::EventConfig::EventType
itk::SmartPointer< InteractionEvent > EventType
Definition: mitkEventConfig.h:47
mitk::EventConfig
Configuration Object for Statemachines.
Definition: mitkEventConfig.h:44
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
us::Module
Definition: usModule.h:78
mitkPropertyList.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
usSharedData.h
us::SharedDataPointer< EventConfigPrivate >