VTK
vtkOutputWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOutputWindow.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 =========================================================================*/
25 #ifndef vtkOutputWindow_h
26 #define vtkOutputWindow_h
27 
28 #include "vtkDebugLeaksManager.h" // Must be included before singletons
29 #include "vtkCommonCoreModule.h" // For export macro
30 #include "vtkObject.h"
31 
32 class VTKCOMMONCORE_EXPORT vtkOutputWindowCleanup
33 {
34 public:
37 
38 private:
39  vtkOutputWindowCleanup(const vtkOutputWindowCleanup& other) VTK_DELETE_FUNCTION;
40  vtkOutputWindowCleanup& operator=(const vtkOutputWindowCleanup& rhs) VTK_DELETE_FUNCTION;
41 };
42 
43 class VTKCOMMONCORE_EXPORT vtkOutputWindow : public vtkObject
44 {
45 public:
46 // Methods from vtkObject
47  vtkTypeMacro(vtkOutputWindow,vtkObject);
51  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52 
60  static vtkOutputWindow* New();
64  static vtkOutputWindow* GetInstance();
69  static void SetInstance(vtkOutputWindow *instance);
71 
76  virtual void DisplayText(const char*);
77  virtual void DisplayErrorText(const char*);
78  virtual void DisplayWarningText(const char*);
79  virtual void DisplayGenericWarningText(const char*);
81 
82  virtual void DisplayDebugText(const char*);
84 
89  vtkBooleanMacro(PromptUser,int);
90  vtkSetMacro(PromptUser, int);
92 
93 protected:
95  ~vtkOutputWindow() VTK_OVERRIDE;
96  int PromptUser;
97 private:
98  static vtkOutputWindow* Instance;
99 private:
100  vtkOutputWindow(const vtkOutputWindow&) VTK_DELETE_FUNCTION;
101  void operator=(const vtkOutputWindow&) VTK_DELETE_FUNCTION;
102 };
103 
104 // Uses schwartz counter idiom for singleton management
106 
107 
108 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
base class for writing debug output to a console
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkOutputWindowCleanup vtkOutputWindowCleanupInstance
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...