VTK
vtkFreeTypeStringToImage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFreeTypeStringToImage.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
26 #ifndef __vtkFreeTypeStringToImage_h
27 #define __vtkFreeTypeStringToImage_h
28 
29 #include "vtkStringToImage.h"
30 #include "vtkSmartPointer.h" // For SP ivars
31 
33 {
34 public:
36  virtual void PrintSelf(ostream &os, vtkIndent indent);
37 
38  static vtkFreeTypeStringToImage *New();
39 
41 
50  virtual vtkVector2i GetBounds(vtkTextProperty *property,
51  const vtkUnicodeString& string);
52  virtual vtkVector2i GetBounds(vtkTextProperty *property,
53  const vtkStdString& string);
55 
57 
59  virtual int RenderString(vtkTextProperty *property,
60  const vtkUnicodeString& string,
62  virtual int RenderString(vtkTextProperty *property,
63  const vtkStdString& string,
66 
69  virtual void SetScaleToPowerOfTwo(bool scale);
70 
72  void DeepCopy(vtkFreeTypeStringToImage *utility);
73 
74 protected:
77 
78  class Internals;
79  Internals* Implementation;
80 
81 private:
82  vtkFreeTypeStringToImage(const vtkFreeTypeStringToImage &); // Not implemented.
83  void operator=(const vtkFreeTypeStringToImage &); // Not implemented.
84 };
85 
86 #endif //__vtkFreeTypeStringToImage_h