VTK
dox/Common/Core/vtkWin32OutputWindow.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkWin32OutputWindow.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00030 #ifndef __vtkWin32OutputWindow_h
00031 #define __vtkWin32OutputWindow_h
00032 
00033 #include "vtkCommonCoreModule.h" // For export macro
00034 #include "vtkOutputWindow.h"
00035 
00036 
00037 class VTKCOMMONCORE_EXPORT vtkWin32OutputWindow : public vtkOutputWindow
00038 {
00039 public:
00040 // Methods from vtkObject
00041   vtkTypeMacro(vtkWin32OutputWindow,vtkOutputWindow);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045   static vtkWin32OutputWindow* New();
00046 
00048   virtual void DisplayText(const char*);
00049 
00051 
00053   vtkGetMacro(SendToStdErr, bool);
00054   vtkSetMacro(SendToStdErr, bool);
00055   vtkBooleanMacro(SendToStdErr, bool);
00057 
00058 protected:
00059   vtkWin32OutputWindow();
00060   virtual ~vtkWin32OutputWindow();
00061 
00062   void PromptText(const char* text);
00063   static void AddText(const char*);
00064   static int Initialize();
00065 
00066 private:
00067   bool SendToStdErr;
00068 
00069   vtkWin32OutputWindow(const vtkWin32OutputWindow&);  // Not implemented.
00070   void operator=(const vtkWin32OutputWindow&);  // Not implemented.
00071 };
00072 
00073 
00074 #endif