18#ifndef itkSimpleFilterWatcher_h
19#define itkSimpleFilterWatcher_h
200 std::cout <<
" | " <<
m_Process->GetProgress() << std::flush;
203 std::cout << std::endl;
233 std::cout << std::endl <<
"-------Aborted" << std::endl << std::flush;
240 std::cout <<
" #" << std::flush;
251 std::cout <<
"-------- Start " << (
m_Process.GetPointer() ?
m_Process->GetNameOfClass() :
"None") <<
" \""
264 std::cout << (
m_Quiet ?
"Progress Quiet " :
"Progress ") << std::flush;
273 std::cout << std::endl
274 <<
"Filter took " <<
m_TimeProbe.GetMean() <<
" seconds." << std::endl
275 <<
"-------- End " << (
m_Process.GetPointer() ?
m_Process->GetNameOfClass() :
"None") <<
" \""
287 std::cout << std::flush;
291 itkExceptionMacro(
"Filter does not have progress.");
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
virtual void StartFilter()
ProcessObject * GetProcess()
void SetIterations(int val)
virtual ~SimpleFilterWatcher()
std::mutex m_ProgressOutput
itk::ProcessObject::Pointer m_Process
void DeepCopy(const SimpleFilterWatcher &watch)
TimeProbe & GetTimeProbe()
CommandType::Pointer m_StartFilterCommand
CommandType::Pointer m_AbortFilterCommand
SimpleFilterWatcher(const SimpleFilterWatcher &)
virtual void ShowProgress()
const char * GetNameOfClass()
CommandType::Pointer m_EndFilterCommand
int GetIterations() const
unsigned long m_IterationTag
SimpleFilterWatcher(itk::ProcessObject *o, const char *comment="")
SimpleFilterWatcher & operator=(const SimpleFilterWatcher &)
unsigned long m_ProgressTag
SimpleMemberCommand< SimpleFilterWatcher > CommandType
virtual void ShowIteration()
CommandType::Pointer m_IterationFilterCommand
CommandType::Pointer m_ProgressFilterCommand
A Command subclass that calls a pointer to a member function.
SmartPointer< Self > Pointer
Computes the time passed between two points in code.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....