Simple mechanism for monitoring the pipeline events of a filter and reporting these events to std::cout. Formats reports with xml. More...
#include <itkXMLFilterWatcher.h>
Public Member Functions | |
std::string | GetComment () |
const char * | GetNameOfClass () |
ProcessObject * | GetProcess () |
TimeProbe & | GetTimeProbe () |
XMLFilterWatcher (ProcessObject *o, const char *comment="") | |
void | QuietOn () |
void | QuietOff () |
void | TestAbortOn () |
void | TestAbortOff () |
void | SetSteps (int val) |
int | GetSteps () |
void | SetIterations (int val) |
int | GetIterations () |
void | SetQuiet (bool val) |
bool | GetQuiet () |
Protected Member Functions | |
virtual void | ShowAbort () |
virtual void | ShowIteration () |
virtual void | ShowProgress () |
virtual void | StartFilter () |
virtual void | EndFilter () |
Simple mechanism for monitoring the pipeline events of a filter and reporting these events to std::cout. Formats reports with xml.
Definition at line 30 of file itkXMLFilterWatcher.h.
itk::XMLFilterWatcher::XMLFilterWatcher | ( | ProcessObject * | o, | |
const char * | comment = "" | |||
) | [inline] |
Definition at line 33 of file itkXMLFilterWatcher.h.
virtual void itk::XMLFilterWatcher::EndFilter | ( | ) | [inline, protected, virtual] |
Callback method to show the EndEvent
Reimplemented from itk::SimpleFilterWatcher.
Definition at line 85 of file itkXMLFilterWatcher.h.
References itk::TimeProbe::GetMeanTime(), itk::ProcessObject::GetNameOfClass(), itk::SimpleFilterWatcher::GetProcess(), itk::SimpleFilterWatcher::GetQuiet(), itk::SimpleFilterWatcher::GetTimeProbe(), and itk::ResourceProbe< ValueType, MeanType >::Stop().
std::string itk::SimpleFilterWatcher::GetComment | ( | ) | [inline, inherited] |
Get the comment for the watcher.
Definition at line 126 of file itkSimpleFilterWatcher.h.
Referenced by StartFilter().
int itk::SimpleFilterWatcher::GetIterations | ( | ) | [inline, inherited] |
Set/Get the number of iterations completed.
Definition at line 116 of file itkSimpleFilterWatcher.h.
const char* itk::SimpleFilterWatcher::GetNameOfClass | ( | ) | [inline, inherited] |
Method to get the name of the class be monitored by this SimpleFilterWatcher
Definition at line 86 of file itkSimpleFilterWatcher.h.
ProcessObject* itk::SimpleFilterWatcher::GetProcess | ( | ) | [inline, inherited] |
Methods to access member data Get a pointer to the process object being watched.
Definition at line 107 of file itkSimpleFilterWatcher.h.
Referenced by EndFilter(), ShowProgress(), and StartFilter().
bool itk::SimpleFilterWatcher::GetQuiet | ( | ) | [inline, inherited] |
Set/Get the quiet mode boolean. If true, verbose progress is reported.
Definition at line 122 of file itkSimpleFilterWatcher.h.
Referenced by EndFilter(), ShowProgress(), and StartFilter().
int itk::SimpleFilterWatcher::GetSteps | ( | ) | [inline, inherited] |
Set/Get the steps completed.
Definition at line 111 of file itkSimpleFilterWatcher.h.
Referenced by ShowProgress().
TimeProbe& itk::SimpleFilterWatcher::GetTimeProbe | ( | ) | [inline, inherited] |
Get a reference to the TimeProbe
Definition at line 129 of file itkSimpleFilterWatcher.h.
Referenced by EndFilter(), and StartFilter().
void itk::SimpleFilterWatcher::QuietOff | ( | ) | [inline, inherited] |
Methods to control the verbosity of the messages. Quiet reporting limits the information emitted at a ProgressEvent.
Definition at line 94 of file itkSimpleFilterWatcher.h.
void itk::SimpleFilterWatcher::QuietOn | ( | ) | [inline, inherited] |
Methods to control the verbosity of the messages. Quiet reporting limits the information emitted at a ProgressEvent.
Definition at line 93 of file itkSimpleFilterWatcher.h.
void itk::SimpleFilterWatcher::SetIterations | ( | int | val | ) | [inline, inherited] |
Set/Get the number of iterations completed.
Definition at line 115 of file itkSimpleFilterWatcher.h.
Referenced by StartFilter().
void itk::SimpleFilterWatcher::SetQuiet | ( | bool | val | ) | [inline, inherited] |
Set/Get the quiet mode boolean. If true, verbose progress is reported.
Definition at line 121 of file itkSimpleFilterWatcher.h.
void itk::SimpleFilterWatcher::SetSteps | ( | int | val | ) | [inline, inherited] |
Set/Get the steps completed.
Definition at line 110 of file itkSimpleFilterWatcher.h.
Referenced by ShowProgress(), and StartFilter().
virtual void itk::SimpleFilterWatcher::ShowAbort | ( | ) | [inline, protected, virtual, inherited] |
Callback method to show the AbortEvent
Definition at line 159 of file itkSimpleFilterWatcher.h.
virtual void itk::SimpleFilterWatcher::ShowIteration | ( | ) | [inline, protected, virtual, inherited] |
Callback method to show the IterationEvent
Definition at line 165 of file itkSimpleFilterWatcher.h.
virtual void itk::XMLFilterWatcher::ShowProgress | ( | ) | [inline, protected, virtual] |
Callback method to show the ProgressEvent
Reimplemented from itk::SimpleFilterWatcher.
Definition at line 39 of file itkXMLFilterWatcher.h.
References itk::SimpleFilterWatcher::GetProcess(), itk::ProcessObject::GetProgress(), itk::SimpleFilterWatcher::GetQuiet(), itk::SimpleFilterWatcher::GetSteps(), and itk::SimpleFilterWatcher::SetSteps().
virtual void itk::XMLFilterWatcher::StartFilter | ( | ) | [inline, protected, virtual] |
Callback method to show the StartEvent
Reimplemented from itk::SimpleFilterWatcher.
Definition at line 59 of file itkXMLFilterWatcher.h.
References itk::SimpleFilterWatcher::GetComment(), itk::ProcessObject::GetNameOfClass(), itk::SimpleFilterWatcher::GetProcess(), itk::SimpleFilterWatcher::GetQuiet(), itk::SimpleFilterWatcher::GetTimeProbe(), itk::SimpleFilterWatcher::SetIterations(), itk::SimpleFilterWatcher::SetSteps(), and itk::ResourceProbe< ValueType, MeanType >::Start().
void itk::SimpleFilterWatcher::TestAbortOff | ( | ) | [inline, inherited] |
Methods to use to test the AbortEvent of the a filter. If TestAbort is on, the filter being watched will be aborted when the progress reaches 30%.
Definition at line 101 of file itkSimpleFilterWatcher.h.
void itk::SimpleFilterWatcher::TestAbortOn | ( | ) | [inline, inherited] |
Methods to use to test the AbortEvent of the a filter. If TestAbort is on, the filter being watched will be aborted when the progress reaches 30%.
Definition at line 100 of file itkSimpleFilterWatcher.h.