Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkErrorSink Class Reference

vtkErrorSink - class to capture error and warning events reported by a VTK object. This is useful for detecting that a VTK object encountered problems and act accordingly (instead of just logging the event). More...

#include <Libs/vtkAddon/vtkErrorSink.h>

Inheritance diagram for vtkErrorSink:
Inheritance graph
[legend]
Collaboration diagram for vtkErrorSink:
Collaboration graph
[legend]

Classes

struct  Message
 

Public Types

typedef vtkErrorSink Self
 
typedef vtkObject Superclass
 

Public Member Functions

void DisplayMessages ()
 
virtual const char * GetClassName ()
 
virtual int GetNumberOfMessages ()
 Return number of reported error or warning messages. More...
 
virtual bool HasErrors ()
 Return true if the observed object reported errors. More...
 
virtual bool HasWarnings ()
 Return true if the observed object reported errors. More...
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetObservedObject (vtkObject *observedObject)
 Observe error and warnings reported by observedObject. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkErrorSinkNew ()
 
static vtkErrorSinkSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkErrorSink ()
 
 ~vtkErrorSink () override
 

Protected Attributes

vtkSmartPointer< vtkCallbackCommand > CallbackCommand
 
std::vector< MessageMessageList
 
vtkSmartPointer< vtkObject > ObservedObject
 

Detailed Description

vtkErrorSink - class to capture error and warning events reported by a VTK object. This is useful for detecting that a VTK object encountered problems and act accordingly (instead of just logging the event).

Definition at line 26 of file vtkErrorSink.h.

Member Typedef Documentation

◆ Self

Definition at line 32 of file vtkErrorSink.h.

◆ Superclass

typedef vtkObject vtkErrorSink::Superclass

Definition at line 30 of file vtkErrorSink.h.

Constructor & Destructor Documentation

◆ vtkErrorSink()

vtkErrorSink::vtkErrorSink ( )
protected

◆ ~vtkErrorSink()

vtkErrorSink::~vtkErrorSink ( )
overrideprotected

Member Function Documentation

◆ DisplayMessages()

void vtkErrorSink::DisplayMessages ( )

Display errors using vtkOutputWindowDisplayErrorText

See also
vtkOutputWindowDisplayErrorText

◆ GetClassName()

virtual const char* vtkErrorSink::GetClassName ( )
virtual

◆ GetNumberOfMessages()

virtual int vtkErrorSink::GetNumberOfMessages ( )
virtual

Return number of reported error or warning messages.

◆ HasErrors()

virtual bool vtkErrorSink::HasErrors ( )
virtual

Return true if the observed object reported errors.

◆ HasWarnings()

virtual bool vtkErrorSink::HasWarnings ( )
virtual

Return true if the observed object reported errors.

◆ IsA()

virtual int vtkErrorSink::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkErrorSink::IsTypeOf ( const char *  type)
static

◆ New()

static vtkErrorSink* vtkErrorSink::New ( )
static

◆ PrintSelf()

void vtkErrorSink::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ SafeDownCast()

static vtkErrorSink* vtkErrorSink::SafeDownCast ( vtkObject *  o)
static

◆ SetObservedObject()

virtual void vtkErrorSink::SetObservedObject ( vtkObject *  observedObject)
virtual

Observe error and warnings reported by observedObject.

Member Data Documentation

◆ CallbackCommand

vtkSmartPointer<vtkCallbackCommand> vtkErrorSink::CallbackCommand
protected

Definition at line 62 of file vtkErrorSink.h.

◆ MessageList

std::vector<Message> vtkErrorSink::MessageList
protected

Definition at line 60 of file vtkErrorSink.h.

◆ ObservedObject

vtkSmartPointer<vtkObject> vtkErrorSink::ObservedObject
protected

Definition at line 61 of file vtkErrorSink.h.


The documentation for this class was generated from the following file: