Medical Imaging Interaction Toolkit
2024.06.00
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
"
21
#include "
mitkInteractionEventConst.h
"
22
#include "
mitkInteractionPositionEvent.h
"
23
24
#include <
MitkCoreExports.h
>
25
26
namespace
mitk
27
{
28
class
MITKCORE_EXPORT
MousePressEvent
:
public
InteractionPositionEvent
29
{
30
public
:
31
mitkClassMacro
(
MousePressEvent
,
InteractionPositionEvent
)
32
mitkNewMacro5Param
(
Self
,
BaseRenderer
*, const
Point2D
&,
MouseButtons
,
ModifierKeys
,
MouseButtons
)
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
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
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
mitk::MousePressEvent
Definition:
mitkMousePressEvent.h:28
mitkBaseRenderer.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkMousePressEvent.h
Generated on Mon Jun 17 2024 12:43:27 for Medical Imaging Interaction Toolkit by
1.8.17