VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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 "
vtkStringToImage.h
"
30
#include "
vtkSmartPointer.h
"
// For SP ivars
31
32
class
vtkQImageToImageSource
;
33
34
class
VTK_RENDERING_EXPORT
vtkQtStringToImage
:
public
vtkStringToImage
35
{
36
public
:
37
vtkTypeMacro(
vtkQtStringToImage
,
vtkStringToImage
);
38
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
39
40
static
vtkQtStringToImage
*
New
();
41
43
52
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
*property,
53
const
vtkUnicodeString
&
string
);
54
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
*property,
55
const
vtkStdString
&
string
);
57
59
61
virtual
int
RenderString
(
vtkTextProperty
*property,
62
const
vtkUnicodeString
&
string
,
63
vtkImageData
*
data
);
64
virtual
int
RenderString
(
vtkTextProperty
*property,
65
const
vtkStdString
&
string
,
66
vtkImageData
*
data
);
68
70
void
DeepCopy(
vtkQtStringToImage
*utility);
71
72
protected
:
73
vtkQtStringToImage
();
74
~
vtkQtStringToImage
();
75
76
class
Internals;
77
Internals*
Implementation
;
78
79
vtkSmartPointer<vtkQImageToImageSource>
QImageToImage
;
80
81
private
:
82
vtkQtStringToImage
(
const
vtkQtStringToImage
&);
// Not implemented.
83
void
operator=(
const
vtkQtStringToImage
&);
// Not implemented.
84
};
85
86
#endif //__vtkQtStringToImage_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkQImageToImageSource
Create image data from a QImage.
Definition:
vtkQImageToImageSource.h:33
vtkStdString
Wrapper around vtkstd::string to keep symbols short.
Definition:
vtkStdString.h:45
vtkQtStringToImage::QImageToImage
vtkSmartPointer< vtkQImageToImageSource > QImageToImage
Definition:
vtkQtStringToImage.h:79
vtkStringToImage.h
vtkSmartPointer< vtkQImageToImageSource >
vtkStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkStringToImage.h:34
vtkStringToImage::RenderString
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, vtkImageData *data)=0
vtkQtStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkQtStringToImage.h:34
vtkQtStringToImage::Implementation
Internals * Implementation
Definition:
vtkQtStringToImage.h:76
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:43
vtkVector2i
Definition:
vtkVector.h:194
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:37
VTK_RENDERING_EXPORT
#define VTK_RENDERING_EXPORT
Definition:
vtkWin32Header.h:278
vtkSmartPointer.h
vtkObject::New
static vtkObject * New()
vtkUnicodeString
String class that stores Unicode text.
Definition:
vtkUnicodeString.h:70
vtkStringToImage::GetBounds
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string)=0
vtkStringToImage::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Generated by
1.8.9.1