Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkMouseDoubleClickEvent.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 mitkMouseDoubleClickEvent_h
14 #define mitkMouseDoubleClickEvent_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:
45  const Point2D & = Point2D(),
46  MouseButtons buttonStates = NoButton,
47  ModifierKeys modifiers = NoKey,
48  MouseButtons eventButton = NoButton);
49  ~MouseDoubleClickEvent() 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
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
mitkInteractionEvent.h
mitkNewMacro5Param
#define mitkNewMacro5Param(classname, typea, typeb, typec, typed, typee)
Definition: mitkCommon.h:120
mitk::InteractionEvent::MouseButtons
MouseButtons
Definition: mitkInteractionEvent.h:44
itk::SmartPointer< Self >
mitk::MouseDoubleClickEvent
Definition: mitkMouseDoubleClickEvent.h:28
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::InteractionPositionEvent
Super class for all position events.
Definition: mitkInteractionPositionEvent.h:36
mitkInteractionPositionEvent.h
MitkCoreExports.h
mitk::Point< ScalarType, 2 >
mitkCommon.h
mitk::InteractionEvent::ModifierKeys
ModifierKeys
Definition: mitkInteractionEvent.h:52
mitkInteractionEventConst.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkBaseRenderer.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15