Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 __QMITK_MAPPING_JOB_H
18 #define __QMITK_MAPPING_JOB_H
19 
20 // QT
21 #include <QObject>
22 #include <QRunnable>
23 
24 // ITK
25 #include "itkCommand.h"
26 
27 // MatchPoint
28 #include <mapRegistrationBase.h>
29 
30 // MITK
31 #include <mitkDataNode.h>
32 #include <mitkImageMappingHelper.h>
33 #include <mitkPointSet.h>
34 
36 #include <mitkUIDHelper.h>
37 
39 {
40 public:
42  std::string m_MappedName;
53  double m_errorValue;
57  std::string m_InterpolatorLabel;
58 
60 };
61 
63  public QRunnable,
65 {
66  // this is needed for all Qt objects that should have a Qt meta-object
67  // (everything that derives from QObject and wants to have signal/slots)
68  Q_OBJECT
69 
70 public:
72  ~QmitkMappingJob();
73 
74  void run();
75 
76 signals:
77  void Error(QString err);
79  void MapResultIsAvailable(mitk::BaseData::Pointer spMappedData, const QmitkMappingJob *job);
80  void AlgorithmInfo(QString info);
81 
82 public:
83  // Inputs
88 
89  const map::core::RegistrationBase *GetRegistration() const;
90 
91 protected:
92  // mapped data.
94 
96  unsigned long m_ObserverID;
97 
98  // Helper functions
99  const mitk::Image *GetInputDataAsImage() const;
100  const mitk::PointSet *GetInputDataAsPointSet() const;
101 
102  void OnMapAlgorithmEvent(::itk::Object *, const itk::EventObject &event);
103 };
104 
105 #endif
mitk::BaseData::ConstPointer m_spInputData
itk::SmartPointer< Self > Pointer
mitk::DataNode::Pointer m_spRegNode
static void info(const char *fmt,...)
Definition: svm.cpp:100
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
Image class for storing images.
Definition: mitkImage.h:76
std::string m_InterpolatorLabel
::itk::MemberCommand< QmitkMappingJob >::Pointer m_spCommand
std::string NodeUIDType
Definition: mitkUIDHelper.h:30
mitk::BaseGeometry::Pointer m_spRefGeometry
mitk::BaseData::Pointer m_spMappedData
unsigned long m_ObserverID
mitk::ImageMappingInterpolator::Type m_InterpolatorType
mitk::NodeUIDType m_InputDataUID