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