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

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 =========================================================================*/
00046 #ifndef __vtkWin32OutputWindow_h
00047 #define __vtkWin32OutputWindow_h
00048 
00049 #include "vtkOutputWindow.h"
00050 
00051 
00052 class VTK_COMMON_EXPORT vtkWin32OutputWindow : public vtkOutputWindow
00053 {
00054 public:
00055 // Methods from vtkObject
00056   vtkTypeRevisionMacro(vtkWin32OutputWindow,vtkOutputWindow);
00058 
00059   static vtkWin32OutputWindow* New();
00060   // Description:  Put the text into the display window.
00061   // New lines are converted to carriage return new lines.
00062   virtual void DisplayText(const char*);
00063   //BTX
00064   static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, 
00065                                   WPARAM wParam, LPARAM lParam);
00066   //ETX
00068 protected: 
00069   vtkWin32OutputWindow() {}; 
00070   virtual ~vtkWin32OutputWindow() {}; 
00071   
00072   void PromptText(const char* text);
00073   static void AddText(const char*);
00074   static int Initialize();
00075   static HWND OutputWindow;
00076 private:
00077   vtkWin32OutputWindow(const vtkWin32OutputWindow&);  // Not implemented.
00078   void operator=(const vtkWin32OutputWindow&);  // Not implemented.
00079 };
00080 
00081 
00082 
00083 #endif