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 =========================================================================*/
30 #ifndef vtkOutputWindow_h
31 #define vtkOutputWindow_h
32 
33 #include "vtkCommonCoreModule.h" // For export macro
34 #include "vtkObject.h"
35 
36 //BTX
38 {
39 public:
42 
43 private:
44  vtkOutputWindowCleanup(const vtkOutputWindowCleanup& other); // no copy constructor
45  vtkOutputWindowCleanup& operator=(const vtkOutputWindowCleanup& rhs); // no copy assignment
46 };
47 //ETX
48 
50 {
51 public:
52 // Methods from vtkObject
53  vtkTypeMacro(vtkOutputWindow,vtkObject);
55  virtual void PrintSelf(ostream& os, vtkIndent indent);
56 
61  static vtkOutputWindow* New();
63  static vtkOutputWindow* GetInstance();
66  static void SetInstance(vtkOutputWindow *instance);
68 
71  virtual void DisplayText(const char*);
72  virtual void DisplayErrorText(const char*);
73  virtual void DisplayWarningText(const char*);
74  virtual void DisplayGenericWarningText(const char*);
76 
77  virtual void DisplayDebugText(const char*);
79 
81  vtkBooleanMacro(PromptUser,int);
82  vtkSetMacro(PromptUser, int);
83 //BTX
84  // use this as a way of memory management when the
85  // program exits the SmartPointer will be deleted which
86  // will delete the Instance singleton
88 //ETX
89 protected:
91  virtual ~vtkOutputWindow();
93 private:
94  static vtkOutputWindow* Instance;
95 private:
96  vtkOutputWindow(const vtkOutputWindow&); // Not implemented.
97  void operator=(const vtkOutputWindow&); // Not implemented.
98 };
100 
101 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONCORE_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkOutputWindowCleanup Cleanup
base class for writing debug output to a console
static vtkObject * New()