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

vtkMesaFreeTypeTextMapper.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMesaFreeTypeTextMapper.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 =========================================================================*/
00033 #ifndef __vtkMesaFreeTypeTextMapper_h
00034 #define __vtkMesaFreeTypeTextMapper_h
00035 
00036 #include "vtkTextMapper.h"
00037 
00038 //BTX
00039 class FTFont;
00040 //ETX
00041 
00042 class VTK_RENDERING_EXPORT vtkMesaFreeTypeTextMapper : public vtkTextMapper
00043 {
00044 public:
00045   vtkTypeRevisionMacro(vtkMesaFreeTypeTextMapper,vtkTextMapper);
00046   static vtkMesaFreeTypeTextMapper *New();
00047   virtual void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor);
00051 
00055   virtual void ReleaseGraphicsResources(vtkWindow *);
00056 
00058   virtual void GetSize(vtkViewport* viewport, int size[2]);
00059 
00060 protected:
00061   vtkMesaFreeTypeTextMapper();
00062   ~vtkMesaFreeTypeTextMapper();
00063 
00064   vtkTimeStamp  SizeBuildTime;
00065   int LastSize[2];
00066   int LastLargestDescender;
00067 
00068 private:
00069   vtkMesaFreeTypeTextMapper(const vtkMesaFreeTypeTextMapper&);  // Not implemented.
00070   void operator=(const vtkMesaFreeTypeTextMapper&);  // Not implemented.
00071 };
00072 
00073 #endif