Back to index

salome-paravis  6.5.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
PVGUI_OutputWindowAdapter Class Reference

vtkOutputWindow implementation that puts VTK output messages to SALOME log window. More...

#include <PVGUI_OutputWindowAdapter.h>

List of all members.

Public Member Functions

 vtkTypeRevisionMacro (PVGUI_OutputWindowAdapter, vtkOutputWindow)
const unsigned int getTextCount ()
 Returns the number of text messages received.
const unsigned int getErrorCount ()
 Returns the number of error messages received.
const unsigned int getWarningCount ()
 Returns the number of warning messages received.
const unsigned int getGenericWarningCount ()
 Returns the number of generic warning messages received.

Static Public Member Functions

static PVGUI_OutputWindowAdapterNew ()

Private Member Functions

 PVGUI_OutputWindowAdapter ()
 PVGUI_OutputWindowAdapter (const PVGUI_OutputWindowAdapter &)
PVGUI_OutputWindowAdapteroperator= (const PVGUI_OutputWindowAdapter &)
 ~PVGUI_OutputWindowAdapter ()
virtual void DisplayText (const char *)
virtual void DisplayErrorText (const char *)
virtual void DisplayWarningText (const char *)
virtual void DisplayGenericWarningText (const char *)

Private Attributes

unsigned int TextCount
unsigned int ErrorCount
unsigned int WarningCount
unsigned int GenericWarningCount

Detailed Description

vtkOutputWindow implementation that puts VTK output messages to SALOME log window.

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

This class is based on pqOutputWindow ParaView class.

Definition at line 33 of file PVGUI_OutputWindowAdapter.h.


Constructor & Destructor Documentation

Definition at line 57 of file PVGUI_OutputWindowAdapter.cxx.

Definition at line 65 of file PVGUI_OutputWindowAdapter.cxx.

{
}

Member Function Documentation

void PVGUI_OutputWindowAdapter::DisplayErrorText ( const char *  text) [private, virtual]

Definition at line 104 of file PVGUI_OutputWindowAdapter.cxx.

{
  ++this->ErrorCount;
  ProcessVoidEvent( new TEvent( getLogWindow(), text, Qt::darkRed, LogWindow::DisplayNormal ));
}

Here is the call graph for this function:

void PVGUI_OutputWindowAdapter::DisplayGenericWarningText ( const char *  text) [private, virtual]

Definition at line 116 of file PVGUI_OutputWindowAdapter.cxx.

{
  ++this->GenericWarningCount;
  ProcessVoidEvent( new TEvent( getLogWindow() , text, Qt::black, LogWindow::DisplayNormal ));
}

Here is the call graph for this function:

void PVGUI_OutputWindowAdapter::DisplayText ( const char *  text) [private, virtual]

Definition at line 98 of file PVGUI_OutputWindowAdapter.cxx.

{
  ++this->TextCount;
  ProcessVoidEvent( new TEvent( getLogWindow(), text, Qt::darkGreen, LogWindow::DisplayNormal ));
}

Here is the call graph for this function:

void PVGUI_OutputWindowAdapter::DisplayWarningText ( const char *  text) [private, virtual]

Definition at line 110 of file PVGUI_OutputWindowAdapter.cxx.

{
  ++this->WarningCount;
  ProcessVoidEvent( new TEvent( getLogWindow(), text, Qt::black, LogWindow::DisplayNormal ));
}

Here is the call graph for this function:

Returns the number of error messages received.

Definition at line 74 of file PVGUI_OutputWindowAdapter.cxx.

{
  return this->ErrorCount;
}

Returns the number of generic warning messages received.

Definition at line 84 of file PVGUI_OutputWindowAdapter.cxx.

{
  return this->GenericWarningCount;
}

Returns the number of text messages received.

Definition at line 69 of file PVGUI_OutputWindowAdapter.cxx.

{
  return this->TextCount;
}

Returns the number of warning messages received.

Definition at line 79 of file PVGUI_OutputWindowAdapter.cxx.

{
  return this->WarningCount;
}

Here is the caller graph for this function:

PVGUI_OutputWindowAdapter& PVGUI_OutputWindowAdapter::operator= ( const PVGUI_OutputWindowAdapter ) [private]

Member Data Documentation

unsigned int PVGUI_OutputWindowAdapter::ErrorCount [private]

Definition at line 55 of file PVGUI_OutputWindowAdapter.h.

Definition at line 57 of file PVGUI_OutputWindowAdapter.h.

unsigned int PVGUI_OutputWindowAdapter::TextCount [private]

Definition at line 54 of file PVGUI_OutputWindowAdapter.h.

Definition at line 56 of file PVGUI_OutputWindowAdapter.h.


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