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 
36 {
37 public:
39  virtual void PrintSelf(ostream &os, vtkIndent indent);
40 
42 
44 
54  const vtkUnicodeString& string, int dpi);
56  const vtkStdString& string, int dpi);
58 
60 
64  virtual int RenderString(vtkTextProperty *property,
65  const vtkUnicodeString& string, int dpi,
67  int textDims[2] = NULL);
68  virtual int RenderString(vtkTextProperty *property,
69  const vtkStdString& string, int dpi,
71  int textDims[2] = NULL);
73 
75  void DeepCopy(vtkQtStringToImage *utility);
76 
77 protected:
80 
81  class Internals;
82  Internals* Implementation;
83 
85 
86 private:
87  vtkQtStringToImage(const vtkQtStringToImage &); // Not implemented.
88  void operator=(const vtkQtStringToImage &); // Not implemented.
89 };
90 
91 #endif //vtkQtStringToImage_h
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkQtStringToImage::Implementation
Internals * Implementation
Definition: vtkQtStringToImage.h:81
vtkQtStringToImage::GetBounds
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string, int dpi)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSmartPointer< vtkQImageToImageSource >
vtkStringToImage
uses Qt to render the supplied text to an image.
Definition: vtkStringToImage.h:36
VTKRENDERINGQT_EXPORT
#define VTKRENDERINGQT_EXPORT
Definition: vtkRenderingQtModule.h:15
vtkQtStringToImage::GetBounds
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi)
vtkQtStringToImage::New
static vtkQtStringToImage * New()
vtkQImageToImageSource
Create image data from a QImage.
Definition: vtkQImageToImageSource.h:35
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:72
vtkQtStringToImage::~vtkQtStringToImage
~vtkQtStringToImage()
vtkQtStringToImage::QImageToImage
vtkSmartPointer< vtkQImageToImageSource > QImageToImage
Definition: vtkQtStringToImage.h:84
vtkSmartPointer.h
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkQtStringToImage
uses Qt to render the supplied text to an image.
Definition: vtkQtStringToImage.h:36
vtkStringToImage.h
vtkQtStringToImage::vtkQtStringToImage
vtkQtStringToImage()
vtkQtStringToImage::RenderString
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)
vtkVector2i
Definition: vtkVector.h:266
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkQtStringToImage::DeepCopy
void DeepCopy(vtkQtStringToImage *utility)
vtkQtStringToImage::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkRenderingQtModule.h
vtkQtStringToImage::RenderString
virtual int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)