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

vtkWin32OutputWindow.h

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