Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkMappingJob.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 __QMITK_MAPPING_JOB_H
14 #define __QMITK_MAPPING_JOB_H
15 
16 // QT
17 #include <QObject>
18 #include <QRunnable>
19 
20 // ITK
21 #include "itkCommand.h"
22 
23 // MatchPoint
24 #include <mapRegistrationBase.h>
25 
26 // MITK
27 #include <mitkDataNode.h>
28 #include <mitkImageMappingHelper.h>
29 #include <mitkPointSet.h>
30 
32 #include <mitkUIDHelper.h>
33 
35 {
36 public:
38  std::string m_MappedName;
49  double m_errorValue;
53  std::string m_InterpolatorLabel;
54 
56 };
57 
59  public QRunnable,
61 {
62  // this is needed for all Qt objects that should have a Qt meta-object
63  // (everything that derives from QObject and wants to have signal/slots)
64  Q_OBJECT
65 
66 public:
68  ~QmitkMappingJob() override;
69 
70  void run() override;
71 
72 signals:
73  void Error(QString err);
75  void MapResultIsAvailable(mitk::BaseData::Pointer spMappedData, const QmitkMappingJob *job);
76  void AlgorithmInfo(QString info);
77 
78 public:
79  // Inputs
84 
85  const map::core::RegistrationBase *GetRegistration() const;
86 
87 protected:
88  // mapped data.
90 
91  ::itk::MemberCommand<QmitkMappingJob>::Pointer m_spCommand;
92  unsigned long m_ObserverID;
93 
94  // Helper functions
95  const mitk::Image *GetInputDataAsImage() const;
96  const mitk::PointSet *GetInputDataAsPointSet() const;
97 
98  void OnMapAlgorithmEvent(::itk::Object *, const itk::EventObject &event);
99 };
100 
101 #endif
mitk::BaseData::ConstPointer m_spInputData
mitk::DataNode::Pointer m_spRegNode
static void info(const char *fmt,...)
Definition: svm.cpp:86
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:75
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
Image class for storing images.
Definition: mitkImage.h:72
std::string m_InterpolatorLabel
::itk::MemberCommand< QmitkMappingJob >::Pointer m_spCommand
std::string NodeUIDType
Definition: mitkUIDHelper.h:26
mitk::BaseGeometry::Pointer m_spRefGeometry
mitk::BaseData::Pointer m_spMappedData
unsigned long m_ObserverID
mitk::ImageMappingInterpolator::Type m_InterpolatorType
mitk::NodeUIDType m_InputDataUID