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

vtkOpenGLFreeTypeTextMapper.h

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