18 #ifndef __itkSimpleFilterWatcher_h
19 #define __itkSimpleFilterWatcher_h
89 const char * GetNameOfClass()
91 return ( m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None" );
136 virtual void ShowProgress()
143 std::cout <<
" | " << m_Process->GetProgress() << std::flush;
144 if ( ( m_Steps % 10 ) == 0 )
146 std::cout << std::endl;
151 if ( m_Process->GetProgress() > .03 )
153 m_Process->AbortGenerateDataOn();
161 virtual void ShowAbort()
163 std::cout << std::endl <<
"-------Aborted" << std::endl << std::flush;
167 virtual void ShowIteration()
169 std::cout <<
" #" << std::flush;
174 virtual void StartFilter()
179 std::cout <<
"-------- Start "
180 << ( m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None" )
181 <<
" \"" << m_Comment <<
"\" ";
186 std::cout << m_Process;
193 std::cout << ( m_Quiet ?
"Progress Quiet " :
"Progress " )
199 virtual void EndFilter()
202 std::cout << std::endl <<
"Filter took "
203 << m_TimeProbe.GetMean()
205 std::cout << std::endl
207 << ( m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None" )
208 <<
" \"" << m_Comment <<
"\" " << std::endl;
213 std::cout << m_Process;
219 std::cout << std::flush;
223 itkExceptionMacro (
"Filter does not have progress.");