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 m_CurrentPixel * m_InverseNumberOfPixels * m_ProgressWeight + m_InitialProgress);
88 if ( m_Filter->GetAbortGenerateData() )
92 msg +=
"Object " + std::string( m_Filter->GetNameOfClass() ) +
": AbortGenerateDataOn";