Medical Imaging Interaction Toolkit  2016.11.0
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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef mitkInternalEvent_h
18 #define mitkInternalEvent_h
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 #include "mitkBaseRenderer.h"
23 #include "mitkCommon.h"
24 #include "mitkInteractionEvent.h"
26 #include <string>
27 
28 #include <MitkCoreExports.h>
29 
30 namespace mitk
31 {
39  {
40  public:
42  mitkNewMacro3Param(Self, BaseRenderer *, DataInteractor *, const std::string &);
43 
44  std::string GetSignalName() const;
45  DataInteractor *GetTargetInteractor() const;
46 
47  virtual bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
48 
49  protected:
50  InternalEvent(BaseRenderer *, DataInteractor *destInteractor, const std::string &signalName);
51  virtual ~InternalEvent();
52 
53  virtual bool IsEqual(const InteractionEvent &) const override;
54 
55  private:
56  DataInteractor::Pointer m_DataInteractor;
57  std::string m_SignalName;
58  };
59 }
60 #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:44
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:102