Medical Imaging Interaction Toolkit  2026.06.00
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 
47  {
48  public:
50 
57 
63  EventConfig(const EventConfig &other);
64 
75  EventConfig(const std::string &filename, const us::Module *module = nullptr);
76 
86  EventConfig(std::istream &inputStream);
87 
125  EventConfig(const std::vector<PropertyList::Pointer> &configDescription);
126 
129 
132 
138  bool IsValid() const;
139 
153  bool AddConfig(const std::string &filename, const us::Module *module = nullptr);
154 
167  bool AddConfig(const EventConfig &config);
168 
172  void ClearConfig();
173 
182  PropertyList::Pointer GetAttributes() const;
183 
198  std::string GetMappedEvent(const EventType &interactionEvent) const;
199 
200  private:
202  };
203 
204 } // namespace mitk
205 
206 #endif
#define MITKCORE_EXPORT
Configuration Object for Statemachines.
EventConfig(std::istream &inputStream)
Construct an EventConfig object based on a XML configuration file.
bool AddConfig(const EventConfig &config)
This method extends this configuration.
~EventConfig()
Destructor.
bool IsValid() const
Checks whether this EventConfig object is valid.
EventConfig(const std::vector< PropertyList::Pointer > &configDescription)
Construct an EventConfig object based on a vector of mitk::PropertyLists.
EventConfig & operator=(const EventConfig &other)
Copy assignment operator.
std::string GetMappedEvent(const EventType &interactionEvent) const
Get the mapped event variant name for a given interaction event.
EventConfig()
Constructs an invalid EventConfig object.
EventConfig(const std::string &filename, const us::Module *module=nullptr)
Construct an EventConfig object based on a XML configuration file.
itk::SmartPointer< InteractionEvent > EventType
void ClearConfig()
Reset this EventConfig object, rendering it invalid.
bool AddConfig(const std::string &filename, const us::Module *module=nullptr)
This method extends this configuration.
EventConfig(const EventConfig &other)
Copy constructor.
PropertyList::Pointer GetAttributes() const
Returns the attributes defined in the configuration file.
Represents a CppMicroServices module.
Definition: usModule.h:70
Find image slices visible on a given plane.