Medical Imaging Interaction Toolkit  2016.11.0
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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef MITKMOUSEWHEELEVENT_H_
18 #define MITKMOUSEWHEELEVENT_H_
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 #include "mitkBaseRenderer.h"
23 #include "mitkCommon.h"
24 #include "mitkInteractionEvent.h"
27 
28 #include <MitkCoreExports.h>
29 
34 namespace mitk
35 {
37  {
38  public:
40  mitkNewMacro5Param(Self, BaseRenderer *, const Point2D &, MouseButtons, ModifierKeys, int)
41 
42  ModifierKeys GetModifiers() const;
43  MouseButtons GetButtonStates() const;
44  void SetModifiers(ModifierKeys modifiers);
45  void SetButtonStates(MouseButtons buttons);
46  int GetWheelDelta() const;
47  void SetWheelDelta(int delta);
48 
49  virtual bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
50 
51  protected:
52  MouseWheelEvent(BaseRenderer * = NULL,
53  const Point2D &mousePosition = Point2D(),
54  MouseButtons buttonStates = NoButton,
55  ModifierKeys modifiers = NoKey,
56  int wheelDelta = 0);
57  virtual ~MouseWheelEvent();
58 
59  virtual bool IsEqual(const InteractionEvent &) const override;
60 
61  private:
62  int m_WheelDelta;
63  MouseButtons m_ButtonStates;
64  ModifierKeys m_Modifiers;
65  };
66 } /* namespace mitk */
67 
68 #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:44
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:128