VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkFreeTypeStringToImage.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 =========================================================================*/ 00015 00026 #ifndef __vtkFreeTypeStringToImage_h 00027 #define __vtkFreeTypeStringToImage_h 00028 00029 #include "vtkStringToImage.h" 00030 #include "vtkSmartPointer.h" // For SP ivars 00031 00032 class VTK_RENDERING_EXPORT vtkFreeTypeStringToImage : public vtkStringToImage 00033 { 00034 public: 00035 vtkTypeMacro(vtkFreeTypeStringToImage, vtkStringToImage); 00036 virtual void PrintSelf(ostream &os, vtkIndent indent); 00037 00038 static vtkFreeTypeStringToImage *New(); 00039 00041 00050 virtual vtkVector2i GetBounds(vtkTextProperty *property, 00051 const vtkUnicodeString& string); 00052 virtual vtkVector2i GetBounds(vtkTextProperty *property, 00053 const vtkStdString& string); 00055 00057 00059 virtual int RenderString(vtkTextProperty *property, 00060 const vtkUnicodeString& string, 00061 vtkImageData *data); 00062 virtual int RenderString(vtkTextProperty *property, 00063 const vtkStdString& string, 00064 vtkImageData *data); 00066 00069 virtual void SetScaleToPowerOfTwo(bool scale); 00070 00072 void DeepCopy(vtkFreeTypeStringToImage *utility); 00073 00074 protected: 00075 vtkFreeTypeStringToImage(); 00076 ~vtkFreeTypeStringToImage(); 00077 00078 class Internals; 00079 Internals* Implementation; 00080 00081 private: 00082 vtkFreeTypeStringToImage(const vtkFreeTypeStringToImage &); // Not implemented. 00083 void operator=(const vtkFreeTypeStringToImage &); // Not implemented. 00084 }; 00085 00086 #endif //__vtkFreeTypeStringToImage_h