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 
45  static vtkWin32OutputWindow* New();
46 
50  void DisplayText(const char*) override;
51 
53 
57  vtkGetMacro(SendToStdErr, bool);
58  vtkSetMacro(SendToStdErr, bool);
59  vtkBooleanMacro(SendToStdErr, bool);
61 
62 protected:
64  virtual ~vtkWin32OutputWindow();
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
virtual void DisplayText(const char *)
Display the text.
static vtkOutputWindow * New()
Creates a new instance of vtkOutputWindow.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.
base class for writing debug output to a console
Win32 Specific output window class.