Medical Imaging Interaction Toolkit  2023.04.00
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 QmitkMappingJob_h
14 #define QmitkMappingJob_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
QmitkMappingJobSettings::m_allowUndefPixels
bool m_allowUndefPixels
Definition: QmitkMappingJob.h:42
QmitkMappingJob::m_spInputData
mitk::BaseData::ConstPointer m_spInputData
Definition: QmitkMappingJob.h:81
mitkUIDHelper.h
QmitkMappingJobSettings::m_doGeometryRefinement
bool m_doGeometryRefinement
Definition: QmitkMappingJob.h:40
QmitkMappingJob
Definition: QmitkMappingJob.h:58
mitkImageMappingHelper.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
QmitkMappingJobSettings::m_paddingValue
double m_paddingValue
Definition: QmitkMappingJob.h:44
QmitkMappingJobSettings::m_MappedName
std::string m_MappedName
Definition: QmitkMappingJob.h:38
QmitkMappingJob::m_spCommand
::itk::MemberCommand< QmitkMappingJob >::Pointer m_spCommand
Definition: QmitkMappingJob.h:91
QmitkMappingJob::m_spRegNode
mitk::DataNode::Pointer m_spRegNode
Definition: QmitkMappingJob.h:80
QmitkMappingJob::m_spMappedData
mitk::BaseData::Pointer m_spMappedData
Definition: QmitkMappingJob.h:89
mitkPointSet.h
QmitkMappingJob::m_InputDataUID
mitk::NodeUIDType m_InputDataUID
Definition: QmitkMappingJob.h:82
QmitkMappingJobSettings::m_errorValue
double m_errorValue
Definition: QmitkMappingJob.h:49
mitk::ImageMappingInterpolator::Type
Type
Definition: mitkImageMappingHelper.h:30
MITKMATCHPOINTREGISTRATIONUI_EXPORT
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
Definition: MitkMatchPointRegistrationUIExports.h:15
QmitkMappingJobSettings::m_allowUnregPixels
bool m_allowUnregPixels
Definition: QmitkMappingJob.h:47
mitkDataNode.h
QmitkMappingJobSettings::m_InterpolatorLabel
std::string m_InterpolatorLabel
Definition: QmitkMappingJob.h:53
QmitkMappingJobSettings
Definition: QmitkMappingJob.h:34
QmitkMappingJob::m_spRefGeometry
mitk::BaseGeometry::Pointer m_spRefGeometry
Definition: QmitkMappingJob.h:83
mitk::PointSet
Data structure which stores a set of points.
Definition: mitkPointSet.h:71
mitk::NodeUIDType
std::string NodeUIDType
Definition: mitkUIDHelper.h:26
QmitkMappingJob::m_ObserverID
unsigned long m_ObserverID
Definition: QmitkMappingJob.h:92
MitkMatchPointRegistrationUIExports.h
QmitkMappingJobSettings::m_InterpolatorType
mitk::ImageMappingInterpolator::Type m_InterpolatorType
Definition: QmitkMappingJob.h:51
mbilog::Error
@ Error
Definition: mbilogLoggingTypes.h:29