Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
Medical Imaging Interaction Toolkit
mitkMousePressEvent.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 MITKMOUSEPRESSEVENT_H_
14 #define MITKMOUSEPRESSEVENT_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 
26 namespace mitk
27 {
29  {
30  public:
33 
34  ModifierKeys GetModifiers() const;
35  MouseButtons GetButtonStates() const;
36  void SetModifiers(ModifierKeys modifiers);
37  void SetButtonStates(MouseButtons buttons);
38  MouseButtons GetEventButton() const;
39  void SetEventButton(MouseButtons buttons);
40 
41  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
42 
43  protected:
44  MousePressEvent(BaseRenderer *,
45  const Point2D & = Point2D(),
46  MouseButtons buttonStates = NoButton,
47  ModifierKeys modifiers = NoKey,
48  MouseButtons eventButton = NoButton);
49  ~MousePressEvent() override;
50 
51  bool IsEqual(const InteractionEvent &) const override;
52 
53  private:
54  MouseButtons m_EventButton;
55  MouseButtons m_ButtonStates;
56  ModifierKeys m_Modifiers;
57  };
58 } /* namespace mitk */
59 
60 #endif /* MITKMOUSEPRESSEVENT_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:40
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:124