Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
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 mitkStateMachineConfig_h
14 #define mitkStateMachineConfig_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 /* mitkStateMachineConfig_h */
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< InteractionEvent > EventType
Configuration Object for Statemachines.