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 21 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 32 of file VtkConsoleOutputWindow.cpp.

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

◆ New()

static VtkConsoleOutputWindow * VtkConsoleOutputWindow::New ( )
static

◆ operator=()

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

◆ PrintSelf()

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

Definition at line 58 of file VtkConsoleOutputWindow.cpp.

59{
60 this->Superclass::PrintSelf(os, indent);
61}

◆ vtkTypeMacro()

VtkConsoleOutputWindow::vtkTypeMacro ( VtkConsoleOutputWindow ,
vtkOutputWindow  )

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