Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 /* mitkInternalEvent_h */
#define MITKCORE_EXPORT
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Class to create events from within the application to signal about internal events.
Base class from with interactors that handle DataNodes are to be derived.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:98