VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkOpenGLFreeTypeTextMapper.h 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 =========================================================================*/ 00029 #ifndef __vtkOpenGLFreeTypeTextMapper_h 00030 #define __vtkOpenGLFreeTypeTextMapper_h 00031 00032 #include "vtkTextMapper.h" 00033 00034 //#include <FTGL.h> 00035 // 00036 //#ifdef FTGL_USE_NAMESPACE 00037 //namespace ftgl 00038 //{ 00039 //#endif 00040 //BTX 00041 //class FTFont; 00042 //ETX 00043 //#ifdef FTGL_USE_NAMESPACE 00044 //} 00045 //#endif 00046 00047 class VTK_RENDERING_EXPORT vtkOpenGLFreeTypeTextMapper : public vtkTextMapper 00048 { 00049 public: 00050 vtkTypeMacro(vtkOpenGLFreeTypeTextMapper,vtkTextMapper); 00051 static vtkOpenGLFreeTypeTextMapper *New(); 00052 virtual void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor); 00056 00060 virtual void ReleaseGraphicsResources(vtkWindow *); 00061 00063 virtual void GetSize(vtkViewport* viewport, int size[2]); 00064 00065 protected: 00066 vtkOpenGLFreeTypeTextMapper(); 00067 ~vtkOpenGLFreeTypeTextMapper(); 00068 00069 vtkTimeStamp SizeBuildTime; 00070 int LastSize[2]; 00071 int LastLargestDescender; 00072 00073 private: 00074 vtkOpenGLFreeTypeTextMapper(const vtkOpenGLFreeTypeTextMapper&); // Not implemented. 00075 void operator=(const vtkOpenGLFreeTypeTextMapper&); // Not implemented. 00076 }; 00077 00078 00079 #endif 00080