Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkInteractionKeyEvent.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 mitkInteractionKeyEvent_h
14 #define mitkInteractionKeyEvent_h
15 
16 #include <itkObject.h>
17 #include <itkObjectFactory.h>
18 #include <mitkBaseRenderer.h>
19 #include <mitkCommon.h>
20 #include <mitkInteractionEvent.h>
23 #include <cstring>
24 
25 #include <MitkCoreExports.h>
26 
27 /*
28  * Note: A Click with the MiddleButton is to be handled with MousePressEvents
29  */
30 namespace mitk
31 {
45  {
46  public:
48  mitkNewMacro3Param(Self, BaseRenderer*, const std::string&, ModifierKeys);
49 
55  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
56 
61  ModifierKeys GetModifiers() const;
62 
67  std::string GetKey() const;
68 
69  protected:
70  InteractionKeyEvent(BaseRenderer *, const std::string &key, ModifierKeys modifiers);
71  ~InteractionKeyEvent() override;
72 
73  bool IsEqual(const InteractionEvent &) const override;
74 
75  private:
76  std::string m_Key;
77  ModifierKeys m_Modifiers;
78  };
79 } /* namespace mitk */
80 
81 #endif
#define MITKCORE_EXPORT
Organizes the rendering process.
Base class for all interaction events in MITK.
ModifierKeys
Enumeration of keyboard modifier keys.
Represents a keyboard interaction event.
mitkClassMacro(InteractionKeyEvent, InteractionEvent) mitkNewMacro3Param(Self
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:88
Find image slices visible on a given plane.