Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::NonBlockingAlgorithm Class Reference

#include <mitkNonBlockingAlgorithm.h>

Inheritance diagram for mitk::NonBlockingAlgorithm:
Collaboration diagram for mitk::NonBlockingAlgorithm:

Public Member Functions

 mitkClassMacroItkParent (NonBlockingAlgorithm, itk::Object)
 
void SetDataStorage (DataStorage &storage)
 
DataStorageGetDataStorage ()
 
template<typename T >
void SetParameter (const char *parameter, const T &value)
 For any kind of normal types. More...
 
template<typename T >
void SetPointerParameter (const char *parameter, const itk::SmartPointer< T > &value)
 For any kind of smart pointers. More...
 
void SetPointerParameter (const char *parameter, BaseData *value)
 For any kind of BaseData, like Image, Surface, etc. Will be stored inside some SmartPointerProperty. More...
 
template<typename TPixel , unsigned int VImageDimension>
void SetItkImageAsMITKImagePointerParameter (const char *parameter, itk::Image< TPixel, VImageDimension > *itkImage)
 For any kind of ITK images (C pointers) More...
 
template<typename TPixel , unsigned int VImageDimension>
void SetItkImageAsMITKImagePointerParameter (const char *parameter, const itk::SmartPointer< itk::Image< TPixel, VImageDimension >> &itkImage)
 For any kind of ITK images (smartpointers) More...
 
template<typename T >
void GetParameter (const char *parameter, T &value) const
 
template<typename T >
void GetPointerParameter (const char *parameter, itk::SmartPointer< T > &value) const
 
virtual void Reset ()
 
void StartAlgorithm ()
 
void StartBlockingAlgorithm ()
 
void StopAlgorithm ()
 
void TriggerParameterModified (const itk::EventObject &)
 
void ThreadedUpdateSuccessful (const itk::EventObject &)
 
void ThreadedUpdateFailed (const itk::EventObject &)
 

Protected Member Functions

 NonBlockingAlgorithm ()
 
 ~NonBlockingAlgorithm () override
 
void DefineTriggerParameter (const char *)
 
void UnDefineTriggerParameter (const char *)
 
virtual void Initialize (const NonBlockingAlgorithm *other=nullptr)
 
virtual bool ReadyToRun ()
 
virtual bool ThreadedUpdateFunction ()
 
virtual void ThreadedUpdateSuccessful ()
 
virtual void ThreadedUpdateFailed ()
 

Protected Attributes

PropertyList::Pointer m_Parameters
 
WeakPointer< DataStoragem_DataStorage
 

Detailed Description

Invokes ResultsAvailable with each new result

done centralize use of itk::MultiThreader in this class

Definition at line 78 of file mitkNonBlockingAlgorithm.h.

Constructor & Destructor Documentation

◆ NonBlockingAlgorithm()

mitk::NonBlockingAlgorithm::NonBlockingAlgorithm ( )
protected

◆ ~NonBlockingAlgorithm()

mitk::NonBlockingAlgorithm::~NonBlockingAlgorithm ( )
overrideprotected

Member Function Documentation

◆ DefineTriggerParameter()

void mitk::NonBlockingAlgorithm::DefineTriggerParameter ( const char *  )
protected

◆ GetDataStorage()

DataStorage* mitk::NonBlockingAlgorithm::GetDataStorage ( )

◆ GetParameter()

template<typename T >
void mitk::NonBlockingAlgorithm::GetParameter ( const char *  parameter,
T &  value 
) const
inline

◆ GetPointerParameter()

template<typename T >
void mitk::NonBlockingAlgorithm::GetPointerParameter ( const char *  parameter,
itk::SmartPointer< T > &  value 
) const
inline

◆ Initialize()

virtual void mitk::NonBlockingAlgorithm::Initialize ( const NonBlockingAlgorithm other = nullptr)
protectedvirtual

◆ mitkClassMacroItkParent()

mitk::NonBlockingAlgorithm::mitkClassMacroItkParent ( NonBlockingAlgorithm  ,
itk::Object   
)

◆ ReadyToRun()

◆ Reset()

virtual void mitk::NonBlockingAlgorithm::Reset ( )
virtual

◆ SetDataStorage()

void mitk::NonBlockingAlgorithm::SetDataStorage ( DataStorage storage)

◆ SetItkImageAsMITKImagePointerParameter() [1/2]

template<typename TPixel , unsigned int VImageDimension>
void mitk::NonBlockingAlgorithm::SetItkImageAsMITKImagePointerParameter ( const char *  parameter,
const itk::SmartPointer< itk::Image< TPixel, VImageDimension >> &  itkImage 
)
inline

For any kind of ITK images (smartpointers)

Definition at line 130 of file mitkNonBlockingAlgorithm.h.

References mitk::ImportItkImage(), and mitk::Image::New().

◆ SetItkImageAsMITKImagePointerParameter() [2/2]

template<typename TPixel , unsigned int VImageDimension>
void mitk::NonBlockingAlgorithm::SetItkImageAsMITKImagePointerParameter ( const char *  parameter,
itk::Image< TPixel, VImageDimension > *  itkImage 
)
inline

For any kind of ITK images (C pointers)

Definition at line 118 of file mitkNonBlockingAlgorithm.h.

References mitk::ImportItkImage(), and mitk::Image::New().

◆ SetParameter()

template<typename T >
void mitk::NonBlockingAlgorithm::SetParameter ( const char *  parameter,
const T &  value 
)
inline

For any kind of normal types.

Definition at line 90 of file mitkNonBlockingAlgorithm.h.

◆ SetPointerParameter() [1/2]

void mitk::NonBlockingAlgorithm::SetPointerParameter ( const char *  parameter,
BaseData value 
)

For any kind of BaseData, like Image, Surface, etc. Will be stored inside some SmartPointerProperty.

◆ SetPointerParameter() [2/2]

template<typename T >
void mitk::NonBlockingAlgorithm::SetPointerParameter ( const char *  parameter,
const itk::SmartPointer< T > &  value 
)
inline

For any kind of smart pointers.

Definition at line 100 of file mitkNonBlockingAlgorithm.h.

References mitk::SmartPointerProperty::New().

◆ StartAlgorithm()

void mitk::NonBlockingAlgorithm::StartAlgorithm ( )

◆ StartBlockingAlgorithm()

void mitk::NonBlockingAlgorithm::StartBlockingAlgorithm ( )

◆ StopAlgorithm()

void mitk::NonBlockingAlgorithm::StopAlgorithm ( )

◆ ThreadedUpdateFailed() [1/2]

virtual void mitk::NonBlockingAlgorithm::ThreadedUpdateFailed ( )
protectedvirtual

◆ ThreadedUpdateFailed() [2/2]

void mitk::NonBlockingAlgorithm::ThreadedUpdateFailed ( const itk::EventObject &  )

◆ ThreadedUpdateFunction()

virtual bool mitk::NonBlockingAlgorithm::ThreadedUpdateFunction ( )
protectedvirtual

◆ ThreadedUpdateSuccessful() [1/2]

virtual void mitk::NonBlockingAlgorithm::ThreadedUpdateSuccessful ( )
protectedvirtual

◆ ThreadedUpdateSuccessful() [2/2]

void mitk::NonBlockingAlgorithm::ThreadedUpdateSuccessful ( const itk::EventObject &  )

◆ TriggerParameterModified()

void mitk::NonBlockingAlgorithm::TriggerParameterModified ( const itk::EventObject &  )

◆ UnDefineTriggerParameter()

void mitk::NonBlockingAlgorithm::UnDefineTriggerParameter ( const char *  )
protected

Member Data Documentation

◆ m_DataStorage

WeakPointer<DataStorage> mitk::NonBlockingAlgorithm::m_DataStorage
protected

Definition at line 220 of file mitkNonBlockingAlgorithm.h.

◆ m_Parameters

PropertyList::Pointer mitk::NonBlockingAlgorithm::m_Parameters
protected

Definition at line 218 of file mitkNonBlockingAlgorithm.h.


The documentation for this class was generated from the following file: