Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::XMLFilterWatcher Class Reference

#include <itkXMLFilterWatcher.h>

Inheritance diagram for itk::XMLFilterWatcher:

Inheritance graph
[legend]
Collaboration diagram for itk::XMLFilterWatcher:

Collaboration graph
[legend]
List of all members.

Detailed Description

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.

Public Member Functions

std::string GetComment ()
const char * GetNameOfClass ()
ProcessObjectGetProcess ()
TimeProbeGetTimeProbe ()
 XMLFilterWatcher (ProcessObject *o, const char *comment="")
int GetIterations ()
void SetIterations (int val)
bool GetQuiet ()
void SetQuiet (bool val)
int GetSteps ()
void SetSteps (int val)
void QuietOff ()
void QuietOn ()
void TestAbortOff ()
void TestAbortOn ()

Protected Member Functions

virtual void ShowAbort ()
virtual void ShowIteration ()
virtual void EndFilter ()
virtual void ShowProgress ()
virtual void StartFilter ()


Constructor & Destructor Documentation

itk::XMLFilterWatcher::XMLFilterWatcher ( ProcessObject o,
const char *  comment = "" 
) [inline]

Definition at line 33 of file itkXMLFilterWatcher.h.


Member Function Documentation

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::GetTimeProbe(), and itk::TimeProbe::Stop().

std::string itk::SimpleFilterWatcher::GetComment (  )  [inline, inherited]

Get the comment for the watcher.

Definition at line 125 of file itkSimpleFilterWatcher.h.

Referenced by StartFilter().

int itk::SimpleFilterWatcher::GetIterations (  )  [inline, inherited]

Definition at line 115 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 85 of file itkSimpleFilterWatcher.h.

ProcessObject* itk::SimpleFilterWatcher::GetProcess (  )  [inline, inherited]

Get a pointer to the process object being watched.

Definition at line 106 of file itkSimpleFilterWatcher.h.

Referenced by EndFilter(), and StartFilter().

bool itk::SimpleFilterWatcher::GetQuiet (  )  [inline, inherited]

Definition at line 121 of file itkSimpleFilterWatcher.h.

int itk::SimpleFilterWatcher::GetSteps (  )  [inline, inherited]

Definition at line 110 of file itkSimpleFilterWatcher.h.

TimeProbe& itk::SimpleFilterWatcher::GetTimeProbe (  )  [inline, inherited]

Get a reference to the TimeProbe

Definition at line 128 of file itkSimpleFilterWatcher.h.

Referenced by EndFilter(), and StartFilter().

void itk::SimpleFilterWatcher::QuietOff (  )  [inline, inherited]

Definition at line 93 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 92 of file itkSimpleFilterWatcher.h.

void itk::SimpleFilterWatcher::SetIterations ( int  val  )  [inline, inherited]

Set/Get the number of iterations completed.

Definition at line 114 of file itkSimpleFilterWatcher.h.

Referenced by StartFilter().

void itk::SimpleFilterWatcher::SetQuiet ( bool  val  )  [inline, inherited]

Set/Get the quiet mode boolean. If true, verbose progess is reported.

Definition at line 120 of file itkSimpleFilterWatcher.h.

void itk::SimpleFilterWatcher::SetSteps ( int  val  )  [inline, inherited]

Set/Get the steps completed.

Definition at line 109 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 158 of file itkSimpleFilterWatcher.h.

virtual void itk::SimpleFilterWatcher::ShowIteration (  )  [inline, protected, virtual, inherited]

Callback method to show the IterationEvent

Definition at line 164 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::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::GetTimeProbe(), itk::SimpleFilterWatcher::SetIterations(), itk::SimpleFilterWatcher::SetSteps(), and itk::TimeProbe::Start().

void itk::SimpleFilterWatcher::TestAbortOff (  )  [inline, inherited]

Definition at line 100 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 99 of file itkSimpleFilterWatcher.h.


The documentation for this class was generated from the following file:
Generated at Wed Jul 30 11:55:37 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000