18 #ifndef __itkSimpleFilterWatcher_h
19 #define __itkSimpleFilterWatcher_h
89 const char * GetNameOfClass()
91 return ( m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None" );
137 virtual void ShowProgress()
144 std::cout <<
" | " << m_Process->GetProgress() << std::flush;
145 if ( ( m_Steps % 10 ) == 0 )
147 std::cout << std::endl;
152 if ( m_Process->GetProgress() > .03 )
154 m_Process->AbortGenerateDataOn();
162 virtual void ShowAbort()
164 std::cout << std::endl <<
"-------Aborted" << std::endl << std::flush;
168 virtual void ShowIteration()
170 std::cout <<
" #" << std::flush;
175 virtual void StartFilter()
180 std::cout <<
"-------- Start "
181 << ( m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None" )
182 <<
" \"" << m_Comment <<
"\" ";
187 std::cout << m_Process;
194 std::cout << ( m_Quiet ?
"Progress Quiet " :
"Progress " )
200 virtual void EndFilter()
203 std::cout << std::endl <<
"Filter took "
204 << m_TimeProbe.GetMean()
206 std::cout << std::endl
208 << ( m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None" )
209 <<
" \"" << m_Comment <<
"\" " << std::endl;
214 std::cout << m_Process;
220 std::cout << std::flush;
224 itkExceptionMacro (
"Filter does not have progress.");