This class overrides vtk::OutputWindow to redirect messages from VTK to itk::Logger.
More...
#include <igstkVTKLoggerOutput.h>
Public Member Functions |
virtual const char * | GetNameOfClass () const |
| Run-time type information (and related methods).
|
virtual void | DisplayText (const char *t) |
| Send a string to display.
|
virtual void | DisplayErrorText (const char *t) |
| Send a string as an error message to display.
|
virtual void | DisplayWarningText (const char *t) |
| Send a string as a warningmessage to display.
|
virtual void | DisplayGenericWarningText (const char *t) |
| Send a string as a message to display.
|
virtual void | DisplayDebugText (const char *t) |
| Send a string as a debug message to display.
|
virtual void | OverrideVTKWindow () |
| Overrides the default VTK log window.
|
void | Print (StdOStreamType &os) |
| Print information about this object.
|
void | SetLogger (LoggerType *logger) |
virtual unsigned int | GetNumberOfErrorMessages () |
| Returns the number of error messages that have been posted to the output.
|
virtual unsigned int | GetNumberOfWarningMessages () |
| Returns the number of warning messages that have been posted to the output.
|
Detailed Description
This class overrides vtk::OutputWindow to redirect messages from VTK to itk::Logger.
Text messages that the system should display to the user are sent to this object (or subclasses of this class).
Although this is a VTK class, do not call Delete() if you have called OverrideVTKWindow(). After you call OverrideVTKWindow(), the VTKLoggerOutput object will automatically be deleted when the program exits.
Definition at line 46 of file igstkVTKLoggerOutput.h.
Member Typedef Documentation
Constructor & Destructor Documentation
igstk::VTKLoggerOutput::VTKLoggerOutput |
( |
| ) |
|
|
protected |
virtual igstk::VTKLoggerOutput::~VTKLoggerOutput |
( |
| ) |
|
|
protectedvirtual |
Member Function Documentation
virtual const char* igstk::VTKLoggerOutput::GetNameOfClass |
( |
| ) |
const |
|
virtual |
Run-time type information (and related methods).
virtual void igstk::VTKLoggerOutput::DisplayText |
( |
const char * |
t | ) |
|
|
virtual |
Send a string to display.
virtual void igstk::VTKLoggerOutput::DisplayErrorText |
( |
const char * |
t | ) |
|
|
virtual |
Send a string as an error message to display.
The default implementation calls DisplayText() but subclasses could present this message differently.
virtual void igstk::VTKLoggerOutput::DisplayWarningText |
( |
const char * |
t | ) |
|
|
virtual |
Send a string as a warningmessage to display.
The default implementation calls DisplayText() but subclasses could present this message differently.
virtual void igstk::VTKLoggerOutput::DisplayGenericWarningText |
( |
const char * |
t | ) |
|
|
virtual |
Send a string as a message to display.
The default implementation calls DisplayText() but subclasses could present this message differently.
virtual void igstk::VTKLoggerOutput::DisplayDebugText |
( |
const char * |
t | ) |
|
|
virtual |
Send a string as a debug message to display.
The default implementation calls DisplayText() but subclasses could present this message differently.
virtual void igstk::VTKLoggerOutput::OverrideVTKWindow |
( |
| ) |
|
|
virtual |
Print information about this object.
LoggerType* igstk::VTKLoggerOutput::GetLogger |
( |
| ) |
const |
|
protected |
Declarations related to the Logger.
void igstk::VTKLoggerOutput::SetLogger |
( |
LoggerType * |
logger | ) |
|
virtual unsigned int igstk::VTKLoggerOutput::GetNumberOfErrorMessages |
( |
| ) |
|
|
virtual |
Returns the number of error messages that have been posted to the output.
virtual unsigned int igstk::VTKLoggerOutput::GetNumberOfWarningMessages |
( |
| ) |
|
|
virtual |
Returns the number of warning messages that have been posted to the output.
void igstk::VTKLoggerOutput::UnRegister |
( |
vtkObjectBase * |
o | ) |
|
|
protected |
Override UnRegister for special reference count handling.
void igstk::VTKLoggerOutput::PrintSelf |
( |
StdOStreamType & |
os, |
|
|
itk::Indent |
indent |
|
) |
| const |
|
protected |
Print information about this object.
The documentation for this class was generated from the following file: