VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dox
Rendering
Qt
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
33
class
vtkQImageToImageSource
;
34
35
class
VTKRENDERINGQT_EXPORT
vtkQtStringToImage
:
public
vtkStringToImage
36
{
37
public
:
38
vtkTypeMacro(
vtkQtStringToImage
,
vtkStringToImage
);
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
64
virtual
int
RenderString
(
vtkTextProperty
*property,
65
const
vtkUnicodeString
&
string
,
66
vtkImageData
*
data
,
67
int
textDims[2] = NULL);
68
virtual
int
RenderString
(
vtkTextProperty
*property,
69
const
vtkStdString
&
string
,
70
vtkImageData
*
data
,
71
int
textDims[2] = NULL);
73
75
void
DeepCopy
(
vtkQtStringToImage
*utility);
76
77
protected
:
78
vtkQtStringToImage
();
79
~
vtkQtStringToImage
();
80
81
class
Internals;
82
Internals*
Implementation
;
83
84
vtkSmartPointer<vtkQImageToImageSource>
QImageToImage
;
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
vtkQImageToImageSource
Create image data from a QImage.
Definition:
vtkQImageToImageSource.h:34
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkQtStringToImage::QImageToImage
vtkSmartPointer< vtkQImageToImageSource > QImageToImage
Definition:
vtkQtStringToImage.h:84
vtkStringToImage::RenderString
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, vtkImageData *data, int textDims[2]=NULL)=0
vtkpiston::DeepCopy
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkStringToImage.h
vtkSmartPointer< vtkQImageToImageSource >
vtkStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkStringToImage.h:35
vtkQtStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkQtStringToImage.h:35
vtkQtStringToImage::Implementation
Internals * Implementation
Definition:
vtkQtStringToImage.h:81
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:44
vtkRenderingQtModule.h
vtkVector2i
Definition:
vtkVector.h:282
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:38
vtkSmartPointer.h
VTKRENDERINGQT_EXPORT
#define VTKRENDERINGQT_EXPORT
Definition:
vtkRenderingQtModule.h:15
vtkObject::New
static vtkObject * New()
vtkUnicodeString
String class that stores Unicode text.
Definition:
vtkUnicodeString.h:71
vtkStringToImage::GetBounds
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string)=0
vtkStringToImage::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Generated on Sat Jan 3 2015 22:29:58 for VTK by
1.8.8