13 #ifndef QmitkDescriptionParameterBackgroundJob_h
14 #define QmitkDescriptionParameterBackgroundJob_h
29 #include <itkCommand.h>
93 mitk::DescriptionParameterImageGeneratorBase::Pointer
m_Generator;
99 ::itk::MemberCommand<DescriptionParameterBackgroundJob>::Pointer
m_spCommand;
#define MITKPHARMACOKINETICSUI_EXPORT
Background job for computing description parameter images asynchronously.
static mitk::modelFit::ModelFitResultNodeVectorType CreateResultNodes(const mitk::DescriptionParameterImageGeneratorBase::ParameterImageMapType ¶mimages)
void JobProgress(double progress)
Emitted to report computation progress.
void Finished()
Emitted when the job has finished (successfully or not).
mitk::DescriptionParameterImageGeneratorBase::Pointer m_Generator
void JobStatusChanged(QString info)
Emitted when the job status changes.
unsigned long m_ObserverID
mitk::modelFit::ModelFitResultNodeVectorType m_Results
DescriptionParameterBackgroundJob(mitk::DescriptionParameterImageGeneratorBase *generator, mitk::DataNode *parentNode=nullptr)
Construct a background job for the given generator.
void OnComputeEvent(::itk::Object *, const itk::EventObject &event)
~DescriptionParameterBackgroundJob() override
void ResultsAreAvailable(mitk::modelFit::ModelFitResultNodeVectorType resultMap, const DescriptionParameterBackgroundJob *pJob)
Emitted when result data nodes are available.
mitk::DataNode::Pointer m_ParentNode
mitk::DataNode * GetParentNode() const
Get the parent node for the results of this job.
void run() override
Execute the parameter image generation in the background thread.
void Error(QString err)
Emitted when an error occurs during computation.
::itk::MemberCommand< DescriptionParameterBackgroundJob >::Pointer m_spCommand
Central node class of the MITK data tree, associating a data object with properties and mappers.
Abstract base class for generators that produce parameter images from curve descriptors.
std::map< ParameterNameType, Image::Pointer > ParameterImageMapType
Map from parameter names to their corresponding output images.
std::vector< DataNode::Pointer > ModelFitResultNodeVectorType