Version: 9.15.0
PVViewer_OutputWindow Class Reference

vtkOutputWindow implementation that redirects VTK output messages to dedicated sinals which are then handled by SALOME log window. More...

#include <PVViewer_OutputWindow.h>

Inheritance diagram for PVViewer_OutputWindow:
Inheritance graph

Public Member Functions

 vtkTypeMacro (PVViewer_OutputWindow, vtkOutputWindow) unsigned int getTextCount() const
 Returns the number of text messages received. More...
 
unsigned int getErrorCount () const
 Returns the number of error messages received. More...
 
unsigned int getWarningCount () const
 Returns the number of warning messages received. More...
 
unsigned int getGenericWarningCount () const
 Returns the number of generic warning messages received. More...
 
unsigned int getDebugCount () const
 Returns the number of debug messages received. More...
 

Static Public Member Functions

static PVViewer_OutputWindowNew ()
 

Private Member Functions

 PVViewer_OutputWindow ()
 
 PVViewer_OutputWindow (const PVViewer_OutputWindow &)
 
PVViewer_OutputWindowoperator= (const PVViewer_OutputWindow &)
 
 ~PVViewer_OutputWindow ()
 
void DisplayText (const char *)
 
int count (const MessageTypes &) const
 

Private Attributes

QMap< MessageTypes, int > myCounter
 

Detailed Description

vtkOutputWindow implementation that redirects VTK output messages to dedicated sinals which are then handled by SALOME log window.

To use, create an instance of PVViewer_OutputWindow and pass it to the vtkOutputWindow::setInstance() static method.

This class is based on pqOutputWindow ParaView class.

Constructor & Destructor Documentation

◆ PVViewer_OutputWindow() [1/2]

PVViewer_OutputWindow::PVViewer_OutputWindow ( )
private

◆ PVViewer_OutputWindow() [2/2]

PVViewer_OutputWindow::PVViewer_OutputWindow ( const PVViewer_OutputWindow )
private

◆ ~PVViewer_OutputWindow()

PVViewer_OutputWindow::~PVViewer_OutputWindow ( )
private

Member Function Documentation

◆ count()

int PVViewer_OutputWindow::count ( const MessageTypes &  type) const
private

References myCounter.

◆ DisplayText()

void PVViewer_OutputWindow::DisplayText ( const char *  text)
private

References count(), and myCounter.

◆ getDebugCount()

unsigned int PVViewer_OutputWindow::getDebugCount ( ) const

Returns the number of debug messages received.

References count().

◆ getErrorCount()

unsigned int PVViewer_OutputWindow::getErrorCount ( ) const

Returns the number of error messages received.

References count().

◆ getGenericWarningCount()

unsigned int PVViewer_OutputWindow::getGenericWarningCount ( ) const

Returns the number of generic warning messages received.

References count().

◆ getWarningCount()

unsigned int PVViewer_OutputWindow::getWarningCount ( ) const

Returns the number of warning messages received.

References count().

◆ New()

static PVViewer_OutputWindow* PVViewer_OutputWindow::New ( )
static

◆ operator=()

PVViewer_OutputWindow& PVViewer_OutputWindow::operator= ( const PVViewer_OutputWindow )
private

◆ vtkTypeMacro()

PVViewer_OutputWindow::vtkTypeMacro ( PVViewer_OutputWindow  ,
vtkOutputWindow   
) const

Returns the number of text messages received.

Member Data Documentation

◆ myCounter

QMap<MessageTypes, int> PVViewer_OutputWindow::myCounter
private

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