Medical Imaging Interaction Toolkit  2018.4.99-6aa36ba9
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 /* MITKMOUSEPRESSEVENT_H_ */
Super class for all position events.
#define MITKCORE_EXPORT
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:124