OGS
VtkConsoleOutputWindow Class Reference

Detailed Description

Is used to suppress message boxes on Windows and instead print VTK warnings and errors in the console. Suppresses some specific messages as defined in VtkConsoleOutputWindow::DisplayText()

Definition at line 11 of file VtkConsoleOutputWindow.h.

#include <VtkConsoleOutputWindow.h>

Inheritance diagram for VtkConsoleOutputWindow:
[legend]
Collaboration diagram for VtkConsoleOutputWindow:
[legend]

Public Member Functions

 vtkTypeMacro (VtkConsoleOutputWindow, vtkOutputWindow)
void PrintSelf (ostream &os, vtkIndent indent) override
void DisplayText (const char *) override
 VtkConsoleOutputWindow (const VtkConsoleOutputWindow &)=delete
void operator= (const VtkConsoleOutputWindow &)=delete

Static Public Member Functions

static VtkConsoleOutputWindowNew ()

Protected Member Functions

 VtkConsoleOutputWindow ()
 ~VtkConsoleOutputWindow () override

Constructor & Destructor Documentation

◆ VtkConsoleOutputWindow() [1/2]

VtkConsoleOutputWindow::VtkConsoleOutputWindow ( const VtkConsoleOutputWindow & )
delete

◆ VtkConsoleOutputWindow() [2/2]

VtkConsoleOutputWindow::VtkConsoleOutputWindow ( )
protecteddefault

◆ ~VtkConsoleOutputWindow()

VtkConsoleOutputWindow::~VtkConsoleOutputWindow ( )
overrideprotecteddefault

Member Function Documentation

◆ DisplayText()

void VtkConsoleOutputWindow::DisplayText ( const char * someText)
override

Definition at line 25 of file VtkConsoleOutputWindow.cpp.

26{
27 if (!someText)
28 {
29 return;
30 }
31
32 // Disable warnings
33 std::string someTextString(someText);
34 if ((someTextString.find(
35 "This is very expensive for vtkMappedDataArray subclasses, since "
36 "the scalar array must be generated for each call.") !=
37 std::string::npos) ||
38 (someTextString.find("Invalid framebuffer operation") !=
39 std::string::npos))
40 {
41 return;
42 }
43
44#ifdef WIN32
45 OutputDebugString(someTextString.c_str());
46#endif
47 std::cerr << someText;
48}

◆ New()

VtkConsoleOutputWindow * VtkConsoleOutputWindow::New ( )
static

◆ operator=()

void VtkConsoleOutputWindow::operator= ( const VtkConsoleOutputWindow & )
delete

◆ PrintSelf()

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

Definition at line 51 of file VtkConsoleOutputWindow.cpp.

52{
53 this->Superclass::PrintSelf(os, indent);
54}

◆ vtkTypeMacro()

VtkConsoleOutputWindow::vtkTypeMacro ( VtkConsoleOutputWindow ,
vtkOutputWindow  )

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