Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkMouseReleaseEvent.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 mitkMouseReleaseEvent_h
14 #define mitkMouseReleaseEvent_h
15 
16 #include <itkObject.h>
17 #include <itkObjectFactory.h>
18 #include <mitkBaseRenderer.h>
19 #include <mitkCommon.h>
20 #include <mitkInteractionEvent.h>
23 
24 #include <MitkCoreExports.h>
25 
26 namespace mitk
27 {
40  {
41  public:
44 
46  ModifierKeys GetModifiers() const;
47 
49  MouseButtons GetButtonStates() const;
50 
52  void SetModifiers(ModifierKeys modifiers);
53 
55  void SetButtonStates(MouseButtons buttons);
56 
58  MouseButtons GetEventButton() const;
59 
61  void SetEventButton(MouseButtons buttons);
62 
67  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
68 
69  protected:
71  const mitk::Point2D &mousePosition = Point2D(),
72  MouseButtons buttonStates = NoButton,
73  ModifierKeys modifiers = NoKey,
74  MouseButtons eventButton = NoButton);
75  ~MouseReleaseEvent() override;
76 
83  bool IsEqual(const InteractionEvent &) const override;
84 
85  private:
86  MouseButtons m_EventButton;
87  MouseButtons m_ButtonStates;
88  ModifierKeys m_Modifiers;
89  };
90 } /* namespace mitk */
91 
92 #endif
#define MITKCORE_EXPORT
Organizes the rendering process.
Base class for all interaction events in MITK.
ModifierKeys
Enumeration of keyboard modifier keys.
MouseButtons
Enumeration of mouse button states.
Super class for all position-aware interaction events.
Interaction event class representing a mouse button release.
mitkClassMacro(MouseReleaseEvent, InteractionPositionEvent) mitkNewMacro5Param(Self
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:114
Find image slices visible on a given plane.