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>
◆ VtkConsoleOutputWindow() [1/2]
◆ VtkConsoleOutputWindow() [2/2]
VtkConsoleOutputWindow::VtkConsoleOutputWindow |
( |
| ) |
|
|
protecteddefault |
◆ ~VtkConsoleOutputWindow()
VtkConsoleOutputWindow::~VtkConsoleOutputWindow |
( |
| ) |
|
|
overrideprotecteddefault |
◆ 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
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()
◆ operator=()
◆ PrintSelf()
void VtkConsoleOutputWindow::PrintSelf |
( |
ostream & | os, |
|
|
vtkIndent | indent ) |
|
override |
◆ vtkTypeMacro()
The documentation for this class was generated from the following files: