VTK
vtkWin32OutputWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWin32OutputWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkWin32OutputWindow_h
29 #define vtkWin32OutputWindow_h
30 
31 #include "vtkCommonCoreModule.h" // For export macro
32 #include "vtkOutputWindow.h"
33 
34 
35 class VTKCOMMONCORE_EXPORT vtkWin32OutputWindow : public vtkOutputWindow
36 {
37 public:
38 // Methods from vtkObject
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
46 
50  void DisplayText(const char*) override;
51 
53 
57  vtkGetMacro(SendToStdErr, bool);
58  vtkSetMacro(SendToStdErr, bool);
59  vtkBooleanMacro(SendToStdErr, bool);
61 
62 protected:
65 
66  void PromptText(const char* text);
67  static void AddText(const char*);
68  static int Initialize();
69 
70 private:
71  bool SendToStdErr;
72 
74  void operator=(const vtkWin32OutputWindow&) = delete;
75 };
76 
77 
78 #endif
vtkWin32OutputWindow::New
static vtkWin32OutputWindow * New()
Create a vtkWin32OutputWindow.
vtkWin32OutputWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.
vtkWin32OutputWindow
Win32 Specific output window class.
Definition: vtkWin32OutputWindow.h:36
vtkOutputWindow.h
vtkWin32OutputWindow::vtkWin32OutputWindow
vtkWin32OutputWindow()
vtkWin32OutputWindow::DisplayText
void DisplayText(const char *) override
New lines are converted to carriage return new lines.
vtkOutputWindow
base class for writing debug output to a console
Definition: vtkOutputWindow.h:47
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkWin32OutputWindow::PromptText
void PromptText(const char *text)
vtkWin32OutputWindow::AddText
static void AddText(const char *)
vtkWin32OutputWindow::~vtkWin32OutputWindow
virtual ~vtkWin32OutputWindow()
vtkWin32OutputWindow::Initialize
static int Initialize()