00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOpenGLFreeTypeTextMapper.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 =========================================================================*/ 00043 #ifndef __vtkOpenGLFreeTypeTextMapper_h 00044 #define __vtkOpenGLFreeTypeTextMapper_h 00045 00046 #include "vtkTextMapper.h" 00047 00048 //BTX 00049 class FTFont; 00050 //ETX 00051 00052 class VTK_RENDERING_EXPORT vtkOpenGLFreeTypeTextMapper : public vtkTextMapper 00053 { 00054 public: 00055 vtkTypeRevisionMacro(vtkOpenGLFreeTypeTextMapper,vtkTextMapper); 00056 static vtkOpenGLFreeTypeTextMapper *New(); 00057 virtual void PrintSelf(ostream& os, vtkIndent indent); 00058 00060 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor); 00061 00065 virtual void ReleaseGraphicsResources(vtkWindow *); 00066 00068 virtual void GetSize(vtkViewport* viewport, int size[2]); 00069 00070 protected: 00071 vtkOpenGLFreeTypeTextMapper(); 00072 ~vtkOpenGLFreeTypeTextMapper(); 00073 00074 vtkTimeStamp SizeBuildTime; 00075 int LastSize[2]; 00076 int LastLargestDescender; 00077 00078 private: 00079 vtkOpenGLFreeTypeTextMapper(const vtkOpenGLFreeTypeTextMapper&); // Not implemented. 00080 void operator=(const vtkOpenGLFreeTypeTextMapper&); // Not implemented. 00081 }; 00082 00083 00084 #endif 00085