Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkMouseWheelEvent.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 mitkMouseWheelEvent_h
14 #define mitkMouseWheelEvent_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 {
43  {
44  public:
47 
49  ModifierKeys GetModifiers() const;
50 
52  MouseButtons GetButtonStates() const;
53 
55  void SetModifiers(ModifierKeys modifiers);
56 
58  void SetButtonStates(MouseButtons buttons);
59 
64  int GetWheelDelta() const;
65 
70  void SetWheelDelta(int delta);
71 
76  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
77 
78  protected:
80  const Point2D &mousePosition = Point2D(),
81  MouseButtons buttonStates = NoButton,
82  ModifierKeys modifiers = NoKey,
83  int wheelDelta = 0);
84  ~MouseWheelEvent() override;
85 
93  bool IsEqual(const InteractionEvent &) const override;
94 
95  private:
96  int m_WheelDelta;
97  MouseButtons m_ButtonStates;
98  ModifierKeys m_Modifiers;
99  };
100 } /* namespace mitk */
101 
102 #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 wheel scroll.
mitkClassMacro(MouseWheelEvent, InteractionPositionEvent) mitkNewMacro5Param(Self
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:114
Find image slices visible on a given plane.