|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Background job for computing description parameter images asynchronously. More...
#include <QmitkDescriptionParameterBackgroundJob.h>


Signals | |
| void | Finished () |
| Emitted when the job has finished (successfully or not). More... | |
| void | Error (QString err) |
| Emitted when an error occurs during computation. More... | |
| void | ResultsAreAvailable (mitk::modelFit::ModelFitResultNodeVectorType resultMap, const DescriptionParameterBackgroundJob *pJob) |
| Emitted when result data nodes are available. More... | |
| void | JobProgress (double progress) |
| Emitted to report computation progress. More... | |
| void | JobStatusChanged (QString info) |
| Emitted when the job status changes. More... | |
Public Member Functions | |
| DescriptionParameterBackgroundJob (mitk::DescriptionParameterImageGeneratorBase *generator, mitk::DataNode *parentNode=nullptr) | |
| Construct a background job for the given generator. More... | |
| ~DescriptionParameterBackgroundJob () override | |
| void | run () override |
| Execute the parameter image generation in the background thread. More... | |
| mitk::DataNode * | GetParentNode () const |
| Get the parent node for the results of this job. More... | |
Protected Member Functions | |
| void | OnComputeEvent (::itk::Object *, const itk::EventObject &event) |
Static Protected Member Functions | |
| static mitk::modelFit::ModelFitResultNodeVectorType | CreateResultNodes (const mitk::DescriptionParameterImageGeneratorBase::ParameterImageMapType ¶mimages) |
Protected Attributes | |
| mitk::DescriptionParameterImageGeneratorBase::Pointer | m_Generator |
| mitk::DataNode::Pointer | m_ParentNode |
| mitk::modelFit::ModelFitResultNodeVectorType | m_Results |
| ::itk::MemberCommand< DescriptionParameterBackgroundJob >::Pointer | m_spCommand |
| unsigned long | m_ObserverID |
Background job for computing description parameter images asynchronously.
Runs a DescriptionParameterImageGeneratorBase in a background thread (via QRunnable) and emits Qt signals for progress updates, completion, errors, and result availability. Results are packaged as DataNode objects suitable for insertion into a DataStorage.
Definition at line 41 of file QmitkDescriptionParameterBackgroundJob.h.
| DescriptionParameterBackgroundJob::DescriptionParameterBackgroundJob | ( | mitk::DescriptionParameterImageGeneratorBase * | generator, |
| mitk::DataNode * | parentNode = nullptr |
||
| ) |
Construct a background job for the given generator.
| [in] | generator | The description parameter image generator to execute. |
| [in] | parentNode | Optional parent data node for organizing result nodes in the data storage. May be nullptr. |
|
override |
|
staticprotected |
|
signal |
Emitted when an error occurs during computation.
| [in] | err | The error message. |
|
signal |
Emitted when the job has finished (successfully or not).
| mitk::DataNode* DescriptionParameterBackgroundJob::GetParentNode | ( | ) | const |
Get the parent node for the results of this job.
nullptr if none was specified.
|
signal |
Emitted to report computation progress.
| [in] | progress | Progress value in the range [0.0, 1.0]. |
|
signal |
Emitted when the job status changes.
| [in] | info | A human-readable status message. |
|
protected |
|
signal |
Emitted when result data nodes are available.
| [in] | resultMap | The vector of result data nodes. |
| [in] | pJob | Pointer to this job instance. |
|
override |
Execute the parameter image generation in the background thread.
|
protected |
Definition at line 93 of file QmitkDescriptionParameterBackgroundJob.h.
|
protected |
Definition at line 100 of file QmitkDescriptionParameterBackgroundJob.h.
|
protected |
Definition at line 94 of file QmitkDescriptionParameterBackgroundJob.h.
|
protected |
Definition at line 97 of file QmitkDescriptionParameterBackgroundJob.h.
|
protected |
Definition at line 99 of file QmitkDescriptionParameterBackgroundJob.h.