Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkInternalEvent.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 mitkInternalEvent_h
14 #define mitkInternalEvent_h
15 
16 #include <itkObject.h>
17 #include <itkObjectFactory.h>
18 #include <mitkBaseRenderer.h>
19 #include <mitkCommon.h>
20 #include <mitkInteractionEvent.h>
22 #include <string>
23 
24 #include <MitkCoreExports.h>
25 
26 namespace mitk
27 {
38  {
39  public:
41  mitkNewMacro3Param(Self, BaseRenderer *, DataInteractor *, const std::string &);
42 
48  std::string GetSignalName() const;
49 
56 
63  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
64 
65  protected:
72  InternalEvent(BaseRenderer *, DataInteractor *destInteractor, const std::string &signalName);
73  ~InternalEvent() override;
74 
82  bool IsEqual(const InteractionEvent &) const override;
83 
84  private:
85  DataInteractor::Pointer m_DataInteractor;
86  std::string m_SignalName;
87  };
88 }
89 #endif
#define MITKCORE_EXPORT
Organizes the rendering process.
Base class for interactors that operate on DataNodes.
Base class for all interaction events in MITK.
Class to create events from within the application to signal about internal events.
mitkClassMacro(InternalEvent, InteractionEvent)
DataInteractor * GetTargetInteractor() const
Get the DataInteractor that this event targets.
~InternalEvent() override
mitkNewMacro3Param(Self, BaseRenderer *, DataInteractor *, const std::string &)
InternalEvent(BaseRenderer *, DataInteractor *destInteractor, const std::string &signalName)
Construct an internal event.
bool IsEqual(const InteractionEvent &) const override
Compare this event to another InteractionEvent for equality.
std::string GetSignalName() const
Get the signal name that identifies this internal event.
bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override
Check whether this event's class is a superclass of the given event.
Find image slices visible on a given plane.