Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkMouseReleaseEvent.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 MITKMOUSERELEASEEVENT_H_
18 #define MITKMOUSERELEASEEVENT_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 
30 namespace mitk
31 {
33  {
34  public:
37 
38  ModifierKeys GetModifiers() const;
39  MouseButtons GetButtonStates() const;
40  void SetModifiers(ModifierKeys modifiers);
41  void SetButtonStates(MouseButtons buttons);
42  MouseButtons GetEventButton() const;
43  void SetEventButton(MouseButtons buttons);
44 
45  virtual bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
46 
47  protected:
48  MouseReleaseEvent(BaseRenderer *,
49  const mitk::Point2D &mousePosition = Point2D(),
50  MouseButtons buttonStates = NoButton,
51  ModifierKeys modifiers = NoKey,
52  MouseButtons eventButton = NoButton);
53  virtual ~MouseReleaseEvent();
54 
55  virtual bool IsEqual(const InteractionEvent &) const override;
56 
57  private:
58  MouseButtons m_EventButton;
59  MouseButtons m_ButtonStates;
60  ModifierKeys m_Modifiers;
61  };
62 } /* namespace mitk */
63 
64 #endif /* MITKMOUSERELEASEEVENT_H_ */
Super class for all position events.
#define MITKCORE_EXPORT
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
static std::string GetEventButton(mitk::InteractionEvent *event)
GetEventButton Return EventButton as String.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:128