VTK
dox/Common/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 "vtkOutputWindow.h"
00034 
00035 
00036 class VTK_COMMON_EXPORT vtkWin32OutputWindow : public vtkOutputWindow
00037 {
00038 public:
00039 // Methods from vtkObject
00040   vtkTypeMacro(vtkWin32OutputWindow,vtkOutputWindow);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044   static vtkWin32OutputWindow* New();
00045 
00047   virtual void DisplayText(const char*);
00048 
00050 
00052   vtkGetMacro(SendToStdErr, bool);
00053   vtkSetMacro(SendToStdErr, bool);
00054   vtkBooleanMacro(SendToStdErr, bool);
00056 
00057 protected: 
00058   vtkWin32OutputWindow();
00059   virtual ~vtkWin32OutputWindow();
00060 
00061   void PromptText(const char* text);
00062   static void AddText(const char*);
00063   static int Initialize();
00064 
00065 private:
00066   bool SendToStdErr;
00067 
00068   vtkWin32OutputWindow(const vtkWin32OutputWindow&);  // Not implemented.
00069   void operator=(const vtkWin32OutputWindow&);  // Not implemented.
00070 };
00071 
00072 
00073 #endif