This class overrides vtk::OutputWindow to redirect messages from VTK to itk::Logger. More...
#include <igstkVTKLoggerOutput.h>
Public Types | |
typedef VTKLoggerOutput | Self |
Standard class typedefs. | |
typedef vtkOutputWindow | Superclass |
typedef vtkSmartPointer< Self > | Pointer |
typedef vtkSmartPointer< const Self > | ConstPointer |
typedef std::ostream | StdOStreamType |
Type definition for the standard output stream. | |
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. | |
Static Public Member Functions | |
static VTKLoggerOutput * | New () |
Create an object. | |
Protected Member Functions | |
LoggerType * | GetLogger () const |
Declarations related to the Logger. | |
VTKLoggerOutput () | |
Constructor. | |
virtual | ~VTKLoggerOutput () |
Destructor. | |
void | UnRegister (vtkObjectBase *o) |
Override UnRegister for special reference count handling. | |
void | PrintSelf (StdOStreamType &os, itk::Indent indent) const |
Print information about this object. |
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.
Standard class typedefs.
Definition at line 50 of file igstkVTKLoggerOutput.h.
typedef vtkOutputWindow igstk::VTKLoggerOutput::Superclass |
Definition at line 51 of file igstkVTKLoggerOutput.h.
typedef vtkSmartPointer<Self> igstk::VTKLoggerOutput::Pointer |
Definition at line 52 of file igstkVTKLoggerOutput.h.
typedef vtkSmartPointer<const Self> igstk::VTKLoggerOutput::ConstPointer |
Definition at line 53 of file igstkVTKLoggerOutput.h.
typedef std::ostream igstk::VTKLoggerOutput::StdOStreamType |
Type definition for the standard output stream.
Definition at line 91 of file igstkVTKLoggerOutput.h.
igstk::VTKLoggerOutput::VTKLoggerOutput | ( | ) | [protected] |
Constructor.
virtual igstk::VTKLoggerOutput::~VTKLoggerOutput | ( | ) | [protected, virtual] |
Destructor.
virtual const char* igstk::VTKLoggerOutput::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
static VTKLoggerOutput* igstk::VTKLoggerOutput::New | ( | ) | [static] |
Create an object.
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] |
Overrides the default VTK log window.
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.
void igstk::VTKLoggerOutput::Print | ( | StdOStreamType & | os | ) |
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.