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 "vtkRenderingFreeTypeOpenGLModule.h" // For export macro 00033 #include "vtkTextMapper.h" 00034 00035 class VTKRENDERINGFREETYPEOPENGL_EXPORT vtkOpenGLFreeTypeTextMapper 00036 : public vtkTextMapper 00037 { 00038 public: 00039 vtkTypeMacro(vtkOpenGLFreeTypeTextMapper, vtkTextMapper); 00040 static vtkOpenGLFreeTypeTextMapper *New(); 00041 virtual void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor); 00045 00049 virtual void ReleaseGraphicsResources(vtkWindow *); 00050 00052 virtual void GetSize(vtkViewport* viewport, int size[2]); 00053 00054 protected: 00055 vtkOpenGLFreeTypeTextMapper(); 00056 ~vtkOpenGLFreeTypeTextMapper(); 00057 00058 vtkTimeStamp SizeBuildTime; 00059 int LastSize[2]; 00060 int LastLargestDescender; 00061 00062 private: 00063 vtkOpenGLFreeTypeTextMapper(const vtkOpenGLFreeTypeTextMapper&); // Not implemented. 00064 void operator=(const vtkOpenGLFreeTypeTextMapper&); // Not implemented. 00065 }; 00066 00067 #endif