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...
static const double e
The base of the natural logarithm or Euler's number
SizeValueType m_PixelsPerUpdate
unsigned long SizeValueType
SizeValueType m_PixelsBeforeUpdate
Implements progress tracking for a filter.
SizeValueType m_CurrentPixel
unsigned int ThreadIdType