Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 {
35  {
36  public:
38  mitkNewMacro3Param(Self, BaseRenderer *, DataInteractor *, const std::string &);
39 
40  std::string GetSignalName() const;
41  DataInteractor *GetTargetInteractor() const;
42 
43  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
44 
45  protected:
46  InternalEvent(BaseRenderer *, DataInteractor *destInteractor, const std::string &signalName);
47  ~InternalEvent() override;
48 
49  bool IsEqual(const InteractionEvent &) const override;
50 
51  private:
52  DataInteractor::Pointer m_DataInteractor;
53  std::string m_SignalName;
54  };
55 }
56 #endif
mitk::InteractionEvent
Definition: mitkInteractionEvent.h:26
mitkInteractionEvent.h
itk::SmartPointer< Self >
mitkNewMacro3Param
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:94
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitkCommon.h
mitkInteractionEventConst.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::DataInteractor
Base class from with interactors that handle DataNodes are to be derived.
Definition: mitkDataInteractor.h:48
mitkBaseRenderer.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::InternalEvent
Class to create events from within the application to signal about internal events.
Definition: mitkInternalEvent.h:34