VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
37 class VTKCOMMONCORE_EXPORT vtkOutputWindowCleanup
38 {
39 public:
42 };
43 //ETX
44 
45 class VTKCOMMONCORE_EXPORT vtkOutputWindow : public vtkObject
46 {
47 public:
48 // Methods from vtkObject
49  vtkTypeMacro(vtkOutputWindow,vtkObject);
51  virtual void PrintSelf(ostream& os, vtkIndent indent);
52 
57  static vtkOutputWindow* New();
59  static vtkOutputWindow* GetInstance();
62  static void SetInstance(vtkOutputWindow *instance);
64 
67  virtual void DisplayText(const char*);
68  virtual void DisplayErrorText(const char*);
69  virtual void DisplayWarningText(const char*);
70  virtual void DisplayGenericWarningText(const char*);
72 
73  virtual void DisplayDebugText(const char*);
75 
77  vtkBooleanMacro(PromptUser,int);
78  vtkSetMacro(PromptUser, int);
79 //BTX
80  // use this as a way of memory management when the
81  // program exits the SmartPointer will be deleted which
82  // will delete the Instance singleton
84 //ETX
85 protected:
87  virtual ~vtkOutputWindow();
89 private:
90  static vtkOutputWindow* Instance;
91 private:
92  vtkOutputWindow(const vtkOutputWindow&); // Not implemented.
93  void operator=(const vtkOutputWindow&); // Not implemented.
94 };
96 
97 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
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()