18 #ifndef __itkFilterWatcher_h
19 #define __itkFilterWatcher_h
34 #if defined(_COMPILER_VERSION) && (_COMPILER_VERSION == 730)
51 startFilterCommand->SetCallbackFunction(
this,
53 endFilterCommand->SetCallbackFunction(
this,
55 progressFilterCommand->SetCallbackFunction(
this,
57 iterationFilterCommand->SetCallbackFunction(
this,
59 abortFilterCommand->SetCallbackFunction(
this,
75 std::cout <<
" | " <<
m_Process->GetProgress() << std::flush;
78 std::cout << std::endl;
91 std::cout << std::endl <<
" ABORT" << std::endl << std::flush;
95 std::cout <<
" # " << std::flush;
103 std::cout <<
"-------- Start " <<
m_Process->GetNameOfClass()
106 << (
m_Quiet ?
"Progress Quiet " :
"Progress ")
113 std::cout << std::endl <<
"Filter took "
114 <<
static_cast<double>(
m_End -
m_Start) / CLOCKS_PER_SEC
116 std::cout << std::endl << std::endl
117 <<
"-------- End " <<
m_Process->GetNameOfClass()
122 itkExceptionMacro (
"Filter does not have progress.");
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
FilterWatcher(itk::ProcessObject *o, const char *comment="")
virtual void ShowIteration()
virtual void ShowProgress()
virtual void StartFilter()
const char * GetNameOfClass()
itk::ProcessObject::Pointer m_Process