Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
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 QmitkDescriptionParameterBackgroundJob_h
14
#define QmitkDescriptionParameterBackgroundJob_h
15
16
17
//QT
18
#include <QRunnable>
19
#include <QObject>
20
21
//MITK
22
#include <
mitkDataNode.h
>
23
24
#include <
mitkDescriptionParameterImageGeneratorBase.h
>
25
#include <
mitkModelFitResultHelper.h
>
26
#include <
mitkModelFitInfo.h
>
27
28
// ITK
29
#include <itkCommand.h>
30
31
#include "
MitkPharmacokineticsUIExports.h
"
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
:
40
DescriptionParameterBackgroundJob
(
mitk::DescriptionParameterImageGeneratorBase
* generator,
mitk::DataNode
* parentNode =
nullptr
);
41
~
DescriptionParameterBackgroundJob
()
override
;
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
:
57
static
mitk::modelFit::ModelFitResultNodeVectorType
CreateResultNodes(
const
mitk::DescriptionParameterImageGeneratorBase::ParameterImageMapType
& paramimages);
58
59
//Inputs
60
mitk::DescriptionParameterImageGeneratorBase::Pointer
m_Generator
;
61
mitk::DataNode::Pointer
m_ParentNode
;
62
63
// Results
64
mitk::modelFit::ModelFitResultNodeVectorType
m_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
DescriptionParameterBackgroundJob::m_ParentNode
mitk::DataNode::Pointer m_ParentNode
Definition:
QmitkDescriptionParameterBackgroundJob.h:61
DescriptionParameterBackgroundJob::m_Results
mitk::modelFit::ModelFitResultNodeVectorType m_Results
Definition:
QmitkDescriptionParameterBackgroundJob.h:64
mitk::DescriptionParameterImageGeneratorBase
Definition:
mitkDescriptionParameterImageGeneratorBase.h:26
DescriptionParameterBackgroundJob
Definition:
QmitkDescriptionParameterBackgroundJob.h:33
itk::SmartPointer< Self >
DescriptionParameterBackgroundJob::m_Generator
mitk::DescriptionParameterImageGeneratorBase::Pointer m_Generator
Definition:
QmitkDescriptionParameterBackgroundJob.h:60
mitkModelFitResultHelper.h
mitkDescriptionParameterImageGeneratorBase.h
mitk::DescriptionParameterImageGeneratorBase::ParameterImageMapType
std::map< ParameterNameType, Image::Pointer > ParameterImageMapType
Definition:
mitkDescriptionParameterImageGeneratorBase.h:36
mitkModelFitInfo.h
MitkPharmacokineticsUIExports.h
mitkDataNode.h
mitk::modelFit::ModelFitResultNodeVectorType
std::vector< DataNode::Pointer > ModelFitResultNodeVectorType
Definition:
mitkModelFitResultHelper.h:37
MITKPHARMACOKINETICSUI_EXPORT
#define MITKPHARMACOKINETICSUI_EXPORT
Definition:
MitkPharmacokineticsUIExports.h:15
DescriptionParameterBackgroundJob::m_ObserverID
unsigned long m_ObserverID
Definition:
QmitkDescriptionParameterBackgroundJob.h:67
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
DescriptionParameterBackgroundJob::m_spCommand
::itk::MemberCommand< DescriptionParameterBackgroundJob >::Pointer m_spCommand
Definition:
QmitkDescriptionParameterBackgroundJob.h:66
src
MITK
Modules
PharmacokineticsUI
Qmitk
QmitkDescriptionParameterBackgroundJob.h
Generated on Sat Nov 23 2024 02:13:16 for Medical Imaging Interaction Toolkit by
1.8.17