Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkWin32OutputWindow.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkWin32OutputWindow.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006-03-18 18:06:38 $
00007   Version:   $Revision: 1.26 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkWin32OutputWindow_h
00021 #define __itkWin32OutputWindow_h
00022 
00023 #include "itkWin32Header.h"
00024 #include "itkOutputWindow.h"
00025 #include "itkObjectFactory.h"
00026 #include "itkWindows.h"
00027 namespace itk
00028 {
00029 
00044 class ITKCommon_EXPORT Win32OutputWindow : public OutputWindow
00045 {
00046 public:
00048   typedef Win32OutputWindow         Self;
00049   typedef OutputWindow              Superclass;
00050   typedef SmartPointer<Self>        Pointer;
00051   typedef SmartPointer<const Self>  ConstPointer;
00052 
00054   itkNewMacro(Self);
00055 
00057   itkTypeMacro(Win32OutputWindow, OutputWindow);
00058 
00061   virtual void DisplayText(const char*);
00062 
00063   static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, 
00064                                   WPARAM wParam, LPARAM lParam);
00065 protected: 
00066   Win32OutputWindow() {}
00067   virtual ~Win32OutputWindow();
00068   
00069   void PromptText(const char* text);
00070   static void AddText(const char*);
00071   static int Initialize();
00072 
00073 private:
00074   Win32OutputWindow(const Self&); //purposely not implemented
00075   void operator=(const Self&); //purposely not implemented
00076   
00077   static HWND m_OutputWindow;
00078 };
00079   
00080 } // end namespace itk
00081 #endif  //  __itkWin32OutputWindow_h
00082 

Generated at Mon Apr 14 15:03:08 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000