|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkSimpleFilterWatcher_h
19 #define itkSimpleFilterWatcher_h
93 return (m_Process ? m_Process->GetNameOfClass() :
"None");
131 return m_Process.GetPointer();
198 std::cout <<
" | " << m_Process->GetProgress() << std::flush;
199 if ((m_Steps % 10) == 0)
201 std::cout << std::endl;
206 if (m_Process->GetProgress() > .03)
208 m_Process->AbortGenerateDataOn();
231 std::cout << std::endl <<
"-------Aborted" << std::endl << std::flush;
238 std::cout <<
" #" << std::flush;
249 std::cout <<
"-------- Start " << (m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None") <<
" \""
250 << m_Comment <<
"\" ";
255 std::cout << m_Process;
262 std::cout << (m_Quiet ?
"Progress Quiet " :
"Progress ") << std::flush;
271 std::cout << std::endl <<
"Filter took " << m_TimeProbe.GetMean() <<
" seconds.";
272 std::cout << std::endl
273 <<
"-------- End " << (m_Process.GetPointer() ? m_Process->GetNameOfClass() :
"None") <<
" \""
274 << m_Comment <<
"\" " << std::endl;
279 std::cout << m_Process;
285 std::cout << std::flush;
289 itkExceptionMacro(
"Filter does not have progress.");
297 int m_Iterations{ 0 };
298 bool m_Quiet{
false };
299 bool m_TestAbort{
false };
310 unsigned long m_StartTag{ 0 };
311 unsigned long m_EndTag{ 0 };
312 unsigned long m_ProgressTag{ 0 };
313 unsigned long m_IterationTag{ 0 };
314 unsigned long m_AbortTag{ 0 };
CommandType::Pointer m_AbortFilterCommand
virtual void ShowIteration()
itk::ProcessObject::Pointer m_Process
ProcessObject * GetProcess()
A Command subclass that calls a pointer to a member function.
CommandType::Pointer m_StartFilterCommand
Simple mechanism for monitoring the pipeline events of a filter and reporting these events to std::co...
const char * GetNameOfClass()
Computes the time passed between two points in code.
int GetIterations() const
virtual void StartFilter()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
CommandType::Pointer m_EndFilterCommand
TimeProbe & GetTimeProbe()
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
virtual void ShowProgress()
void SetIterations(int val)
CommandType::Pointer m_ProgressFilterCommand
CommandType::Pointer m_IterationFilterCommand