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