|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Base class for all interaction events in MITK. More...
#include <mitkInteractionEvent.h>


Public Types | |
| enum | MouseButtons { NoButton , LeftMouseButton , RightMouseButton , MiddleMouseButton } |
| Enumeration of mouse button states. More... | |
| enum | ModifierKeys { NoKey , ShiftKey , ControlKey , AltKey } |
| Enumeration of keyboard modifier keys. More... | |
Public Member Functions | |
| mitkClassMacroItkParent (InteractionEvent, itk::LightObject) | |
| mitkNewMacro1Param (Self, BaseRenderer *) | |
| void | SetSender (BaseRenderer *sender) |
| Set the BaseRenderer that sent this event. More... | |
| BaseRenderer * | GetSender () const |
| Get the BaseRenderer that sent this event. More... | |
| virtual bool | IsSuperClassOf (const InteractionEvent::Pointer &baseClass) const |
| Check if the provided event is an instance of this class or a derived class. More... | |
Static Public Attributes | |
| static const std::string | KeyEsc |
| String constants for special keys used in key events and state machine patterns. More... | |
| static const std::string | KeyEnter |
| "Enter" key constant. More... | |
| static const std::string | KeyReturn |
| "Return" key constant. More... | |
| static const std::string | KeyDelete |
| "Delete" key constant. More... | |
| static const std::string | KeyArrowUp |
| "ArrowUp" key constant. More... | |
| static const std::string | KeyArrowDown |
| "ArrowDown" key constant. More... | |
| static const std::string | KeyArrowLeft |
| "ArrowLeft" key constant. More... | |
| static const std::string | KeyArrowRight |
| "ArrowRight" key constant. More... | |
| static const std::string | KeyF1 |
| "F1" key constant. More... | |
| static const std::string | KeyF2 |
| "F2" key constant. More... | |
| static const std::string | KeyF3 |
| "F3" key constant. More... | |
| static const std::string | KeyF4 |
| "F4" key constant. More... | |
| static const std::string | KeyF5 |
| "F5" key constant. More... | |
| static const std::string | KeyF6 |
| "F6" key constant. More... | |
| static const std::string | KeyF7 |
| "F7" key constant. More... | |
| static const std::string | KeyF8 |
| "F8" key constant. More... | |
| static const std::string | KeyF9 |
| "F9" key constant. More... | |
| static const std::string | KeyF10 |
| "F10" key constant. More... | |
| static const std::string | KeyF11 |
| "F11" key constant. More... | |
| static const std::string | KeyF12 |
| "F12" key constant. More... | |
| static const std::string | KeyPos1 |
| "Pos1" (Home) key constant. More... | |
| static const std::string | KeyEnd |
| "End" key constant. More... | |
| static const std::string | KeyInsert |
| "Insert" key constant. More... | |
| static const std::string | KeyPageUp |
| "PageUp" key constant. More... | |
| static const std::string | KeyPageDown |
| "PageDown" key constant. More... | |
| static const std::string | KeySpace |
| "Space" key constant. More... | |
Protected Member Functions | |
| InteractionEvent (BaseRenderer *) | |
| ~InteractionEvent () override | |
| virtual bool | IsEqual (const InteractionEvent &other) const |
Base class for all interaction events in MITK.
InteractionEvent is the root of the interaction event hierarchy. Every interaction event carries a reference to the BaseRenderer that generated it (the "sender"). Subclasses add position information (InteractionPositionEvent), keyboard information (InteractionKeyEvent), or mouse button/wheel details.
Equality between events is checked via operator== which delegates to IsEqual(). Two events match if they agree on all attributes relevant for state machine transitions (e.g. mouse button, modifiers) while ignoring attributes like the exact pointer position.
Definition at line 45 of file mitkInteractionEvent.h.
Enumeration of keyboard modifier keys.
Values can be combined with bitwise OR to represent multiple held modifiers.
| Enumerator | |
|---|---|
| NoKey | No modifier key. |
| ShiftKey | Shift key. |
| ControlKey | Control (Ctrl) key. |
| AltKey | Alt key. |
Definition at line 92 of file mitkInteractionEvent.h.
Enumeration of mouse button states.
Values can be combined with bitwise OR to represent multiple pressed buttons.
| Enumerator | |
|---|---|
| NoButton | No mouse button. |
| LeftMouseButton | Left mouse button. |
| RightMouseButton | Right mouse button. |
| MiddleMouseButton | Middle mouse button. |
Definition at line 79 of file mitkInteractionEvent.h.
|
protected |
|
overrideprotected |
| BaseRenderer* mitk::InteractionEvent::GetSender | ( | ) | const |
Get the BaseRenderer that sent this event.
|
protectedvirtual |
|
virtual |
Check if the provided event is an instance of this class or a derived class.
This up-cast check supports polymorphism at the state machine pattern (XML) level, allowing transitions to match on base event types.
| [in] | baseClass | The event to check. |
Reimplemented in mitk::MouseWheelEvent, mitk::MouseReleaseEvent, mitk::MousePressEvent, mitk::MouseMoveEvent, mitk::MouseDoubleClickEvent, mitk::InternalEvent, mitk::InteractionPositionEvent, and mitk::InteractionKeyEvent.
| mitk::InteractionEvent::mitkClassMacroItkParent | ( | InteractionEvent | , |
| itk::LightObject | |||
| ) |
| mitk::InteractionEvent::mitkNewMacro1Param | ( | Self | , |
| BaseRenderer * | |||
| ) |
| void mitk::InteractionEvent::SetSender | ( | BaseRenderer * | sender | ) |
Set the BaseRenderer that sent this event.
| [in] | sender | Pointer to the sending BaseRenderer. |
|
static |
"ArrowDown" key constant.
Definition at line 107 of file mitkInteractionEvent.h.
|
static |
"ArrowLeft" key constant.
Definition at line 108 of file mitkInteractionEvent.h.
|
static |
"ArrowRight" key constant.
Definition at line 109 of file mitkInteractionEvent.h.
|
static |
"ArrowUp" key constant.
Definition at line 106 of file mitkInteractionEvent.h.
|
static |
"Delete" key constant.
Definition at line 105 of file mitkInteractionEvent.h.
|
static |
"End" key constant.
Definition at line 125 of file mitkInteractionEvent.h.
|
static |
"Enter" key constant.
Definition at line 103 of file mitkInteractionEvent.h.
|
static |
String constants for special keys used in key events and state machine patterns.
"Escape" key constant.
Definition at line 102 of file mitkInteractionEvent.h.
|
static |
"F1" key constant.
Definition at line 111 of file mitkInteractionEvent.h.
|
static |
"F10" key constant.
Definition at line 120 of file mitkInteractionEvent.h.
|
static |
"F11" key constant.
Definition at line 121 of file mitkInteractionEvent.h.
|
static |
"F12" key constant.
Definition at line 122 of file mitkInteractionEvent.h.
|
static |
"F2" key constant.
Definition at line 112 of file mitkInteractionEvent.h.
|
static |
"F3" key constant.
Definition at line 113 of file mitkInteractionEvent.h.
|
static |
"F4" key constant.
Definition at line 114 of file mitkInteractionEvent.h.
|
static |
"F5" key constant.
Definition at line 115 of file mitkInteractionEvent.h.
|
static |
"F6" key constant.
Definition at line 116 of file mitkInteractionEvent.h.
|
static |
"F7" key constant.
Definition at line 117 of file mitkInteractionEvent.h.
|
static |
"F8" key constant.
Definition at line 118 of file mitkInteractionEvent.h.
|
static |
"F9" key constant.
Definition at line 119 of file mitkInteractionEvent.h.
|
static |
"Insert" key constant.
Definition at line 126 of file mitkInteractionEvent.h.
|
static |
"PageDown" key constant.
Definition at line 128 of file mitkInteractionEvent.h.
|
static |
"PageUp" key constant.
Definition at line 127 of file mitkInteractionEvent.h.
|
static |
"Pos1" (Home) key constant.
Definition at line 124 of file mitkInteractionEvent.h.
|
static |
"Return" key constant.
Definition at line 104 of file mitkInteractionEvent.h.
|
static |
"Space" key constant.
Definition at line 129 of file mitkInteractionEvent.h.