18 #ifndef itkProgressReporter_h
19 #define itkProgressReporter_h
67 float initialProgress = 0.0f,
68 float progressWeight = 1.0f);
77 if ( --m_PixelsBeforeUpdate == 0 )
79 m_PixelsBeforeUpdate = m_PixelsPerUpdate;
80 m_CurrentPixel += m_PixelsPerUpdate;
82 if ( m_ThreadId == 0 )
84 m_Filter->UpdateProgress(
85 static_cast<float>(m_CurrentPixel) * m_InverseNumberOfPixels * m_ProgressWeight + m_InitialProgress);
88 if ( m_Filter->GetAbortGenerateData() )
92 msg +=
"Object " + std::string( m_Filter->GetNameOfClass() ) +
": AbortGenerateDataOn";
float m_InverseNumberOfPixels
virtual void SetDescription(const std::string &s)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SizeValueType m_PixelsPerUpdate
unsigned long SizeValueType
SizeValueType m_PixelsBeforeUpdate
unsigned int ThreadIdType
Implements progress tracking for a filter.
SizeValueType m_CurrentPixel
static ITK_CONSTEXPR_VAR double e
The base of the natural logarithm or Euler's number