Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
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 {
28  {
29  public:
31  mitkNewMacro4Param(Self, BaseRenderer *, const Point2D &, MouseButtons, ModifierKeys);
32 
33  ModifierKeys GetModifiers() const;
34  MouseButtons GetButtonStates() const;
35  void SetModifiers(ModifierKeys modifiers);
36  void SetButtonStates(MouseButtons buttons);
37 
38  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
39 
40  protected:
42  const Point2D & = Point2D(),
43  MouseButtons buttonStates = NoButton,
44  ModifierKeys modifiers = NoKey);
45  ~MouseMoveEvent() override;
46 
47  bool IsEqual(const InteractionEvent &) const override;
48 
49  private:
50  MouseButtons m_ButtonStates;
51  ModifierKeys m_Modifiers;
52  };
53 } /* namespace mitk */
54 
55 #endif /* MITKMOUSEMOVEEVENT_H_ */
Point< ScalarType, 2 > Point2D
Definition: mitkPoint.h:94
Super class for all position events.
#define MITKCORE_EXPORT
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
Definition: mitkCommon.h:111
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40