ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Member Functions | Private Types | Private Attributes | List of all members
itk::ProgressTransformer Class Reference

#include <itkProgressTransformer.h>

+ Collaboration diagram for itk::ProgressTransformer:

Detailed Description

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() );

See Also
ProgressReporter, ProcessObject

Definition at line 41 of file itkProgressTransformer.h.

Public Member Functions

ProcessObjectGetProcessObject ()
 
 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
 
float m_Start
 
ProcessObjectm_TargetFilter
 

Member Typedef Documentation

Definition at line 66 of file itkProgressTransformer.h.

Constructor & Destructor Documentation

itk::ProgressTransformer::ProgressTransformer ( float  start,
float  end,
ProcessObject targetFilter 
)
itk::ProgressTransformer::~ProgressTransformer ( )

Member Function Documentation

ProcessObject* itk::ProgressTransformer::GetProcessObject ( )
inline

Definition at line 49 of file itkProgressTransformer.h.

void itk::ProgressTransformer::UpdateProgress ( )

Member Data Documentation

ProcessObject::Pointer itk::ProgressTransformer::m_Dummy
private

Definition at line 64 of file itkProgressTransformer.h.

float itk::ProgressTransformer::m_End
private

Definition at line 60 of file itkProgressTransformer.h.

CommandType::Pointer itk::ProgressTransformer::m_ProgressCommand
private

Definition at line 67 of file itkProgressTransformer.h.

unsigned long itk::ProgressTransformer::m_ProgressTag
private

Definition at line 69 of file itkProgressTransformer.h.

float itk::ProgressTransformer::m_Start
private

Definition at line 59 of file itkProgressTransformer.h.

ProcessObject* itk::ProgressTransformer::m_TargetFilter
private

Definition at line 62 of file itkProgressTransformer.h.


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