Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
QmitkParameterFitBackgroundJob.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 QmitkParameterFitBackgroundJob_h
14
#define QmitkParameterFitBackgroundJob_h
15
16
17
//QT
18
#include <QRunnable>
19
#include <QObject>
20
21
//MITK
22
#include <
mitkDataNode.h
>
23
24
#include <
mitkParameterFitImageGeneratorBase.h
>
25
#include <
mitkModelFitResultHelper.h
>
26
#include <
mitkModelFitInfo.h
>
27
28
// ITK
29
#include <itkCommand.h>
30
31
#include "
MitkModelFitUIExports.h
"
32
33
class
MITKMODELFITUI_EXPORT
ParameterFitBackgroundJob
:
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
ParameterFitBackgroundJob
(
mitk::ParameterFitImageGeneratorBase
* generator,
const
mitk::modelFit::ModelFitInfo
* fitInfo,
mitk::DataNode
* parentNode =
nullptr
);
42
ParameterFitBackgroundJob
(
mitk::ParameterFitImageGeneratorBase
* generator,
const
mitk::modelFit::ModelFitInfo
* fitInfo,
mitk::DataNode
* parentNode,
mitk::modelFit::ModelFitResultNodeVectorType
additionalRelevantNodes);
43
44
~
ParameterFitBackgroundJob
()
override
;
45
46
void
run()
override
;
47
50
mitk::DataNode
* GetParentNode()
const
;
51
52
mitk::modelFit::ModelFitResultNodeVectorType
GetAdditionalRelevantNodes()
const
;
53
54
signals:
55
void
Finished();
56
void
Error(QString err);
57
void
ResultsAreAvailable(
mitk::modelFit::ModelFitResultNodeVectorType
resultMap,
const
ParameterFitBackgroundJob
* pJob);
58
void
JobProgress(
double
progress);
59
void
JobStatusChanged(QString info);
60
61
protected
:
62
//Inputs
63
mitk::ParameterFitImageGeneratorBase::Pointer
m_Generator
;
64
mitk::modelFit::ModelFitInfo::ConstPointer
m_ModelFitInfo
;
65
mitk::DataNode::Pointer
m_ParentNode
;
66
mitk::modelFit::ModelFitResultNodeVectorType
m_AdditionalRelevantNodes
;
67
68
// Results
69
mitk::modelFit::ModelFitResultNodeVectorType
m_Results
;
70
71
::itk::MemberCommand<ParameterFitBackgroundJob>::Pointer
m_spCommand
;
72
unsigned
long
m_ObserverID
;
73
74
void
OnFitEvent(::itk::Object *,
const
itk::EventObject &event);
75
};
76
77
#endif
mitkParameterFitImageGeneratorBase.h
ParameterFitBackgroundJob::m_Results
mitk::modelFit::ModelFitResultNodeVectorType m_Results
Definition:
QmitkParameterFitBackgroundJob.h:69
ParameterFitBackgroundJob
Definition:
QmitkParameterFitBackgroundJob.h:33
mitk::modelFit::ModelFitInfo
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
Definition:
mitkModelFitInfo.h:36
ParameterFitBackgroundJob::m_ModelFitInfo
mitk::modelFit::ModelFitInfo::ConstPointer m_ModelFitInfo
Definition:
QmitkParameterFitBackgroundJob.h:64
MITKMODELFITUI_EXPORT
#define MITKMODELFITUI_EXPORT
Definition:
MitkModelFitUIExports.h:15
itk::SmartPointer< Self >
ParameterFitBackgroundJob::m_ObserverID
unsigned long m_ObserverID
Definition:
QmitkParameterFitBackgroundJob.h:72
ParameterFitBackgroundJob::m_ParentNode
mitk::DataNode::Pointer m_ParentNode
Definition:
QmitkParameterFitBackgroundJob.h:65
mitkModelFitResultHelper.h
mitk::ParameterFitImageGeneratorBase
Definition:
mitkParameterFitImageGeneratorBase.h:34
ParameterFitBackgroundJob::m_spCommand
::itk::MemberCommand< ParameterFitBackgroundJob >::Pointer m_spCommand
Definition:
QmitkParameterFitBackgroundJob.h:71
mitkModelFitInfo.h
mitkDataNode.h
ParameterFitBackgroundJob::m_AdditionalRelevantNodes
mitk::modelFit::ModelFitResultNodeVectorType m_AdditionalRelevantNodes
Definition:
QmitkParameterFitBackgroundJob.h:66
MitkModelFitUIExports.h
mitk::modelFit::ModelFitResultNodeVectorType
std::vector< DataNode::Pointer > ModelFitResultNodeVectorType
Definition:
mitkModelFitResultHelper.h:37
ParameterFitBackgroundJob::m_Generator
mitk::ParameterFitImageGeneratorBase::Pointer m_Generator
Definition:
QmitkParameterFitBackgroundJob.h:63
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
src
MITK
Modules
ModelFitUI
Qmitk
QmitkParameterFitBackgroundJob.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17