ITK
6.0.0
Insight Toolkit
|
#include <itkProgressTransformer.h>
Transforms progress updates from [0%, 100%] to desired scale.
This class is designed to be allocated on the stack. Code sample:
ProgressTransformer progress2( 0.55f, 0.6f, this ); multiThreader->ParallelizeArray(0, m_SomeArray.size(), [this]( SizeValueType index ) { this->ComputeInParallel( index ); }, progress2.GetProcessObject() );
Definition at line 41 of file itkProgressTransformer.h.
Public Member Functions | |
ProcessObject * | GetProcessObject () |
ProgressTransformer (float start, float end, ProcessObject *targetFilter) | |
void | UpdateProgress () |
~ProgressTransformer () | |
Private Types | |
using | CommandType = SimpleMemberCommand< ProgressTransformer > |
Private Attributes | |
ProcessObject::Pointer | m_Dummy |
float | m_End |
CommandType::Pointer | m_ProgressCommand |
unsigned long | m_ProgressTag { 0 } |
float | m_Start |
ProcessObject * | m_TargetFilter |
|
private |
Definition at line 68 of file itkProgressTransformer.h.
itk::ProgressTransformer::ProgressTransformer | ( | float | start, |
float | end, | ||
ProcessObject * | targetFilter | ||
) |
itk::ProgressTransformer::~ProgressTransformer | ( | ) |
|
inline |
Definition at line 50 of file itkProgressTransformer.h.
void itk::ProgressTransformer::UpdateProgress | ( | ) |
|
private |
Definition at line 66 of file itkProgressTransformer.h.
|
private |
Definition at line 62 of file itkProgressTransformer.h.
|
private |
Definition at line 69 of file itkProgressTransformer.h.
|
private |
Definition at line 71 of file itkProgressTransformer.h.
|
private |
Definition at line 61 of file itkProgressTransformer.h.
|
private |
Definition at line 64 of file itkProgressTransformer.h.