Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 MITKMOUSEMOVEEVENT_H_
18 #define MITKMOUSEMOVEEVENT_H_
19 #include "itkObject.h"
20 #include "itkObjectFactory.h"
21 #include "mitkBaseRenderer.h"
22 #include "mitkCommon.h"
23 #include "mitkInteractionEvent.h"
26 
27 #include <MitkCoreExports.h>
28 
29 namespace mitk
30 {
32  {
33  public:
35  mitkNewMacro4Param(Self, BaseRenderer *, const Point2D &, MouseButtons, ModifierKeys);
36 
37  ModifierKeys GetModifiers() const;
38  MouseButtons GetButtonStates() const;
39  void SetModifiers(ModifierKeys modifiers);
40  void SetButtonStates(MouseButtons buttons);
41 
42  virtual bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
43 
44  protected:
46  const Point2D & = Point2D(),
47  MouseButtons buttonStates = NoButton,
48  ModifierKeys modifiers = NoKey);
49  virtual ~MouseMoveEvent();
50 
51  virtual bool IsEqual(const InteractionEvent &) const override;
52 
53  private:
54  MouseButtons m_ButtonStates;
55  ModifierKeys m_Modifiers;
56  };
57 } /* namespace mitk */
58 
59 #endif /* MITKMOUSEMOVEEVENT_H_ */
Point< ScalarType, 2 > Point2D
Definition: mitkPoint.h:98
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:115
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44