25 #ifndef vtkOutputWindow_h
26 #define vtkOutputWindow_h
28 #include "vtkCommonCoreModule.h"
43 class vtkOutputWindowPrivateAccessor;
96 vtkBooleanMacro(PromptUser,
bool);
97 vtkSetMacro(PromptUser,
bool);
148 vtkSetClampMacro(DisplayMode,
int, DEFAULT, ALWAYS_STDERR);
149 vtkGetMacro(DisplayMode,
int);
194 int InStandardMacros;
197 friend class vtkOutputWindowPrivateAccessor;
a simple class to control print indentation
abstract base class for most VTK objects
~vtkOutputWindowCleanup()
base class for writing debug output to a console
virtual void DisplayGenericWarningText(const char *)
void SetDisplayModeToAlways()
void SetDisplayModeToNever()
virtual StreamType GetDisplayStream(MessageTypes msgType) const
Returns the standard output stream to post the message of the given type on.
void SetDisplayModeToAlwaysStdErr()
bool GetUseStdErrorForAllMessages()
DisplayModes
Flag indicates how the vtkOutputWindow handles displaying of text to stderr / stdout.
void SetUseStdErrorForAllMessages(bool)
Historically (VTK 8.1 and earlier), when printing messages to terminals, vtkOutputWindow would always...
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.
static vtkOutputWindow * New()
Creates a new instance of vtkOutputWindow.
void UseStdErrorForAllMessagesOn()
static vtkOutputWindow * GetInstance()
Return the singleton instance with no reference counting.
void SetDisplayModeToDefault()
@ MESSAGE_TYPE_GENERIC_WARNING
~vtkOutputWindow() override
void UseStdErrorForAllMessagesOff()
virtual void DisplayDebugText(const char *)
static void SetInstance(vtkOutputWindow *instance)
Supply a user defined output window.
virtual void DisplayWarningText(const char *)
virtual void DisplayText(const char *)
Display the text.
virtual void DisplayErrorText(const char *)
static vtkOutputWindowCleanup vtkOutputWindowCleanupInstance