VTK
vtkQtStringToImage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtStringToImage.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 __vtkQtStringToImage_h
27 #define __vtkQtStringToImage_h
28 
29 #include "vtkRenderingQtModule.h" // For export macro
30 #include "vtkStringToImage.h"
31 #include "vtkSmartPointer.h" // For SP ivars
32 
34 
35 class VTKRENDERINGQT_EXPORT vtkQtStringToImage : public vtkStringToImage
36 {
37 public:
39  virtual void PrintSelf(ostream &os, vtkIndent indent);
40 
41  static vtkQtStringToImage *New();
42 
44 
53  virtual vtkVector2i GetBounds(vtkTextProperty *property,
54  const vtkUnicodeString& string);
55  virtual vtkVector2i GetBounds(vtkTextProperty *property,
56  const vtkStdString& string);
58 
60 
62  virtual int RenderString(vtkTextProperty *property,
63  const vtkUnicodeString& string,
65  virtual int RenderString(vtkTextProperty *property,
66  const vtkStdString& string,
69 
71  void DeepCopy(vtkQtStringToImage *utility);
72 
73 protected:
76 
77  class Internals;
78  Internals* Implementation;
79 
81 
82 private:
83  vtkQtStringToImage(const vtkQtStringToImage &); // Not implemented.
84  void operator=(const vtkQtStringToImage &); // Not implemented.
85 };
86 
87 #endif //__vtkQtStringToImage_h