00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWin32OutputWindow.h,v $ 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 vtkTypeRevisionMacro(vtkWin32OutputWindow,vtkOutputWindow); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 static vtkWin32OutputWindow* New(); 00046 // Description: Put the text into the display window. 00047 // New lines are converted to carriage return new lines. 00048 virtual void DisplayText(const char*); 00050 protected: 00051 vtkWin32OutputWindow() {}; 00052 virtual ~vtkWin32OutputWindow() {}; 00053 00054 void PromptText(const char* text); 00055 static void AddText(const char*); 00056 static int Initialize(); 00057 private: 00058 vtkWin32OutputWindow(const vtkWin32OutputWindow&); // Not implemented. 00059 void operator=(const vtkWin32OutputWindow&); // Not implemented. 00060 }; 00061 00062 00063 00064 #endif