Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkMouseMoveEvent.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 mitkMouseMoveEvent_h
14 #define mitkMouseMoveEvent_h
15 #include <itkObject.h>
16 #include <itkObjectFactory.h>
17 #include <mitkBaseRenderer.h>
18 #include <mitkCommon.h>
19 #include <mitkInteractionEvent.h>
22 
23 #include <MitkCoreExports.h>
24 
25 namespace mitk
26 {
39  {
40  public:
43 
46 
49 
51  void SetModifiers(ModifierKeys modifiers);
52 
55 
60  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
61 
62  protected:
64  const Point2D & = Point2D(),
65  MouseButtons buttonStates = NoButton,
66  ModifierKeys modifiers = NoKey);
67  ~MouseMoveEvent() override;
68 
75  bool IsEqual(const InteractionEvent &) const override;
76 
77  private:
78  MouseButtons m_ButtonStates;
79  ModifierKeys m_Modifiers;
80  };
81 } /* namespace mitk */
82 
83 #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 mouse movement.
void SetButtonStates(MouseButtons buttons)
Set the combined mouse button state.
mitkClassMacro(MouseMoveEvent, InteractionPositionEvent)
bool IsEqual(const InteractionEvent &) const override
Compare this event to another for equality.
MouseButtons GetButtonStates() const
Get the combined state of all mouse buttons at the time of the event.
ModifierKeys GetModifiers() const
Get the active modifier keys (Shift, Ctrl, Alt, etc.).
void SetModifiers(ModifierKeys modifiers)
Set the active modifier keys.
mitkNewMacro4Param(Self, BaseRenderer *, const Point2D &, MouseButtons, ModifierKeys)
MouseMoveEvent(BaseRenderer *, const Point2D &=Point2D(), MouseButtons buttonStates=NoButton, ModifierKeys modifiers=NoKey)
~MouseMoveEvent() override
bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override
Check if the given event is an instance of this class or a subclass.
Find image slices visible on a given plane.
Point< ScalarType, 2 > Point2D
Definition: mitkPoint.h:134