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); 00042 00043 static vtkWin32OutputWindow* New(); 00044 // Description: Put the text into the display window. 00045 // New lines are converted to carriage return new lines. 00046 virtual void DisplayText(const char*); 00047 //BTX 00048 static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, 00049 WPARAM wParam, LPARAM lParam); 00050 //ETX 00052 protected: 00053 vtkWin32OutputWindow() {}; 00054 virtual ~vtkWin32OutputWindow() {}; 00055 00056 void PromptText(const char* text); 00057 static void AddText(const char*); 00058 static int Initialize(); 00059 static HWND OutputWindow; 00060 private: 00061 vtkWin32OutputWindow(const vtkWin32OutputWindow&); // Not implemented. 00062 void operator=(const vtkWin32OutputWindow&); // Not implemented. 00063 }; 00064 00065 00066 00067 #endif