Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkDescriptionParameterBackgroundJob.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_DESCRIPTION_PARAMETER_BACKGROUND_JOB_H
14 #define __QMITK_DESCRIPTION_PARAMETER_BACKGROUND_JOB_H
15 
16 
17 //QT
18 #include <QRunnable>
19 #include <QObject>
20 
21 //MITK
22 #include <mitkDataNode.h>
23 
26 #include <mitkModelFitInfo.h>
27 
28 // ITK
29 #include <itkCommand.h>
30 
32 
33 class MITKPHARMACOKINETICSUI_EXPORT DescriptionParameterBackgroundJob : public QObject, public QRunnable
34 {
35  // this is needed for all Qt objects that should have a Qt meta-object
36  // (everything that derives from QObject and wants to have signal/slots)
37  Q_OBJECT
38 
39 public:
42 
43  void run() override;
44 
47  mitk::DataNode* GetParentNode() const;
48 
49 signals:
50  void Finished();
51  void Error(QString err);
52  void ResultsAreAvailable(mitk::modelFit::ModelFitResultNodeVectorType resultMap, const DescriptionParameterBackgroundJob* pJob);
53  void JobProgress(double progress);
54  void JobStatusChanged(QString info);
55 
56 protected:
58 
59  //Inputs
60  mitk::DescriptionParameterImageGeneratorBase::Pointer m_Generator;
62 
63  // Results
65 
66  ::itk::MemberCommand<DescriptionParameterBackgroundJob>::Pointer m_spCommand;
67  unsigned long m_ObserverID;
68 
69  void OnComputeEvent(::itk::Object *, const itk::EventObject &event);
70 };
71 
72 #endif
73 
mitk::DescriptionParameterImageGeneratorBase::Pointer m_Generator
::itk::MemberCommand< DescriptionParameterBackgroundJob >::Pointer m_spCommand
static void info(const char *fmt,...)
Definition: svm.cpp:86
mitk::modelFit::ModelFitResultNodeVectorType m_Results
std::vector< DataNode::Pointer > ModelFitResultNodeVectorType
std::map< ParameterNameType, Image::Pointer > ParameterImageMapType
#define MITKPHARMACOKINETICSUI_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57