VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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 "
vtkObject.h
"
34
35
//BTX
36
class
VTK_COMMON_EXPORT
vtkOutputWindowCleanup
37
{
38
public
:
39
vtkOutputWindowCleanup
();
40
~
vtkOutputWindowCleanup
();
41
};
42
//ETX
43
44
class
VTK_COMMON_EXPORT
vtkOutputWindow
:
public
vtkObject
45
{
46
public
:
47
// Methods from vtkObject
48
vtkTypeMacro(
vtkOutputWindow
,
vtkObject
);
50
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
56
static
vtkOutputWindow
*
New
();
58
static
vtkOutputWindow
* GetInstance();
61
static
void
SetInstance(
vtkOutputWindow
*instance);
63
66
virtual
void
DisplayText(
const
char
*);
67
virtual
void
DisplayErrorText(
const
char
*);
68
virtual
void
DisplayWarningText(
const
char
*);
69
virtual
void
DisplayGenericWarningText(
const
char
*);
71
72
virtual
void
DisplayDebugText(
const
char
*);
74
76
vtkBooleanMacro(PromptUser,
int
);
77
vtkSetMacro(PromptUser,
int
);
78
//BTX
79
// use this as a way of memory management when the
80
// program exits the SmartPointer will be deleted which
81
// will delete the Instance singleton
82
static
vtkOutputWindowCleanup
Cleanup
;
83
//ETX
84
protected
:
85
vtkOutputWindow
();
86
virtual
~
vtkOutputWindow
();
87
int
PromptUser
;
88
private
:
89
static
vtkOutputWindow
* Instance;
90
private
:
91
vtkOutputWindow
(
const
vtkOutputWindow
&);
// Not implemented.
92
void
operator=(
const
vtkOutputWindow
&);
// Not implemented.
93
};
95
96
#endif
Generated on Tue Jan 8 2013 05:45:23 for VTK by
1.8.1.2