Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkWin32OutputWindow.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWin32OutputWindow.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00034 #ifndef __vtkWin32OutputWindow_h 00035 #define __vtkWin32OutputWindow_h 00036 00037 #include "vtkOutputWindow.h" 00038 00039 00040 class VTK_COMMON_EXPORT vtkWin32OutputWindow : public vtkOutputWindow 00041 { 00042 public: 00043 // Methods from vtkObject 00044 vtkTypeRevisionMacro(vtkWin32OutputWindow,vtkOutputWindow); 00046 00047 static vtkWin32OutputWindow* New(); 00048 // Description: Put the text into the display window. 00049 // New lines are converted to carriage return new lines. 00050 virtual void DisplayText(const char*); 00051 //BTX 00052 static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, 00053 WPARAM wParam, LPARAM lParam); 00054 //ETX 00056 protected: 00057 vtkWin32OutputWindow() {}; 00058 virtual ~vtkWin32OutputWindow() {}; 00059 00060 void PromptText(const char* text); 00061 static void AddText(const char*); 00062 static int Initialize(); 00063 static HWND OutputWindow; 00064 private: 00065 vtkWin32OutputWindow(const vtkWin32OutputWindow&); // Not implemented. 00066 void operator=(const vtkWin32OutputWindow&); // Not implemented. 00067 }; 00068 00069 00070 00071 #endif