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

VTK message output window class for automated testing. More...

#include <Libs/vtkAddon/vtkTestingOutputWindow.h>

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

Public Types

typedef vtkOutputWindow Superclass
 

Public Member Functions

void DisplayDebugText (const char *text) override
 
void DisplayErrorText (const char *text) override
 
void DisplayGenericWarningText (const char *text) override
 
void DisplayText (const char *text) override
 
void DisplayWarningText (const char *text) override
 
virtual const char * GetClassName ()
 
virtual int GetNumberOfLoggedErrorMessages ()
 
virtual int GetNumberOfLoggedMessages ()
 
int GetNumberOfLoggedWarningErrorMessages ()
 
virtual int GetNumberOfLoggedWarningMessages ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void ResetNumberOfLoggedMessages ()
 
virtual void SetNumberOfLoggedErrorMessages (int)
 
virtual void SetNumberOfLoggedMessages (int)
 
virtual void SetNumberOfLoggedWarningMessages (int)
 

Static Public Member Functions

static vtkTestingOutputWindowGetInstance ()
 
static int IsTypeOf (const char *type)
 
static vtkTestingOutputWindowNew ()
 
static vtkTestingOutputWindowSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkTestingOutputWindow ()
 
 ~vtkTestingOutputWindow () override
 

Protected Attributes

int NumberOfLoggedErrorMessages
 
int NumberOfLoggedMessages
 
int NumberOfLoggedWarningMessages
 

Detailed Description

VTK message output window class for automated testing.

This is a VTK output window class that is optimized to be used in automated tests:

A set of convenience macros are defined. Example:

// Initialize output window. All messages are logged to the console. TESTING_OUTPUT_INIT();

...perform operations that must_not log error messages TESTING_OUTPUT_ASSERT_WARNINGS_ERRORS(0);

TESTING_OUTPUT_ASSERT_WARNINGS_BEGIN(); ...perform operations that must log error messages TESTING_OUTPUT_ASSERT_WARNINGS_END();

Definition at line 45 of file vtkTestingOutputWindow.h.

Member Typedef Documentation

◆ Superclass

typedef vtkOutputWindow vtkTestingOutputWindow::Superclass

Definition at line 48 of file vtkTestingOutputWindow.h.

Constructor & Destructor Documentation

◆ vtkTestingOutputWindow()

vtkTestingOutputWindow::vtkTestingOutputWindow ( )
protected

◆ ~vtkTestingOutputWindow()

vtkTestingOutputWindow::~vtkTestingOutputWindow ( )
overrideprotected

Member Function Documentation

◆ DisplayDebugText()

void vtkTestingOutputWindow::DisplayDebugText ( const char *  text)
override

◆ DisplayErrorText()

void vtkTestingOutputWindow::DisplayErrorText ( const char *  text)
override

◆ DisplayGenericWarningText()

void vtkTestingOutputWindow::DisplayGenericWarningText ( const char *  text)
override

◆ DisplayText()

void vtkTestingOutputWindow::DisplayText ( const char *  text)
override

◆ DisplayWarningText()

void vtkTestingOutputWindow::DisplayWarningText ( const char *  text)
override

◆ GetClassName()

virtual const char* vtkTestingOutputWindow::GetClassName ( )
virtual

◆ GetInstance()

static vtkTestingOutputWindow* vtkTestingOutputWindow::GetInstance ( )
static

◆ GetNumberOfLoggedErrorMessages()

virtual int vtkTestingOutputWindow::GetNumberOfLoggedErrorMessages ( )
virtual

◆ GetNumberOfLoggedMessages()

virtual int vtkTestingOutputWindow::GetNumberOfLoggedMessages ( )
virtual

◆ GetNumberOfLoggedWarningErrorMessages()

int vtkTestingOutputWindow::GetNumberOfLoggedWarningErrorMessages ( )

◆ GetNumberOfLoggedWarningMessages()

virtual int vtkTestingOutputWindow::GetNumberOfLoggedWarningMessages ( )
virtual

◆ IsA()

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

◆ IsTypeOf()

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

◆ New()

static vtkTestingOutputWindow* vtkTestingOutputWindow::New ( )
static

◆ PrintSelf()

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

◆ ResetNumberOfLoggedMessages()

virtual void vtkTestingOutputWindow::ResetNumberOfLoggedMessages ( )
virtual

◆ SafeDownCast()

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

◆ SetNumberOfLoggedErrorMessages()

virtual void vtkTestingOutputWindow::SetNumberOfLoggedErrorMessages ( int  )
virtual

◆ SetNumberOfLoggedMessages()

virtual void vtkTestingOutputWindow::SetNumberOfLoggedMessages ( int  )
virtual

◆ SetNumberOfLoggedWarningMessages()

virtual void vtkTestingOutputWindow::SetNumberOfLoggedWarningMessages ( int  )
virtual

Member Data Documentation

◆ NumberOfLoggedErrorMessages

int vtkTestingOutputWindow::NumberOfLoggedErrorMessages
protected

Definition at line 87 of file vtkTestingOutputWindow.h.

◆ NumberOfLoggedMessages

int vtkTestingOutputWindow::NumberOfLoggedMessages
protected

Definition at line 88 of file vtkTestingOutputWindow.h.

◆ NumberOfLoggedWarningMessages

int vtkTestingOutputWindow::NumberOfLoggedWarningMessages
protected

Definition at line 86 of file vtkTestingOutputWindow.h.


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