Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 
30 namespace mitk
31 {
33  {
34  public:
36  mitkNewMacro5Param(Self, BaseRenderer *, const Point2D &, MouseButtons, ModifierKeys, int)
37 
38  ModifierKeys GetModifiers() const;
39  MouseButtons GetButtonStates() const;
40  void SetModifiers(ModifierKeys modifiers);
41  void SetButtonStates(MouseButtons buttons);
42  int GetWheelDelta() const;
43  void SetWheelDelta(int delta);
44 
45  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
46 
47  protected:
48  MouseWheelEvent(BaseRenderer * = nullptr,
49  const Point2D &mousePosition = Point2D(),
50  MouseButtons buttonStates = NoButton,
51  ModifierKeys modifiers = NoKey,
52  int wheelDelta = 0);
53  ~MouseWheelEvent() override;
54 
55  bool IsEqual(const InteractionEvent &) const override;
56 
57  private:
58  int m_WheelDelta;
59  MouseButtons m_ButtonStates;
60  ModifierKeys m_Modifiers;
61  };
62 } /* namespace mitk */
63 
64 #endif
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
mitkInteractionEvent.h
mitkNewMacro5Param
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:120
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::InteractionPositionEvent
Super class for all position events.
Definition: mitkInteractionPositionEvent.h:36
mitkInteractionPositionEvent.h
MitkCoreExports.h
mitk::Point< ScalarType, 2 >
mitkCommon.h
mitkInteractionEventConst.h
mitk::MouseWheelEvent
Definition: mitkMouseWheelEvent.h:32
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkBaseRenderer.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15