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
FreeType
vtkTextRendererStringToImage.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTextRendererStringToImage.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
21
#ifndef __vtkTextRendererStringToImage_h
22
#define __vtkTextRendererStringToImage_h
23
24
#include "
vtkRenderingFreeTypeModule.h
"
// For export macro
25
#include "
vtkStringToImage.h
"
26
27
class
VTKRENDERINGFREETYPE_EXPORT
vtkTextRendererStringToImage
:
28
public
vtkStringToImage
29
{
30
public
:
31
vtkTypeMacro(
vtkTextRendererStringToImage
,
vtkStringToImage
);
32
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
33
34
static
vtkTextRendererStringToImage
*
New
();
35
37
46
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
*property,
47
const
vtkUnicodeString
&
string
);
48
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
*property,
49
const
vtkStdString
&
string
);
51
53
59
virtual
int
RenderString
(
vtkTextProperty
*property,
60
const
vtkUnicodeString
&
string
,
61
vtkImageData
*
data
,
62
int
textDims[2] = NULL);
63
virtual
int
RenderString
(
vtkTextProperty
*property,
64
const
vtkStdString
&
string
,
65
vtkImageData
*
data
,
66
int
textDims[2] = NULL);
68
71
virtual
void
SetScaleToPowerOfTwo
(
bool
scale
);
72
74
void
DeepCopy
(
vtkTextRendererStringToImage
*utility);
75
76
protected
:
77
vtkTextRendererStringToImage
();
78
~
vtkTextRendererStringToImage
();
79
80
class
Internals;
81
Internals*
Implementation
;
82
83
private
:
84
vtkTextRendererStringToImage
(
const
vtkTextRendererStringToImage
&);
// Not implemented.
85
void
operator=(
const
vtkTextRendererStringToImage
&);
// Not implemented.
86
};
87
88
#endif //__vtkTextRendererStringToImage_h
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition:
vtkgl.h:11339
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition:
vtkgl.h:15942
vtkTextRendererStringToImage::Implementation
Internals * Implementation
Definition:
vtkTextRendererStringToImage.h:80
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
VTKRENDERINGFREETYPE_EXPORT
#define VTKRENDERINGFREETYPE_EXPORT
Definition:
vtkRenderingFreeTypeModule.h:15
vtkStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkStringToImage.h:35
vtkRenderingFreeTypeModule.h
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:44
vtkTextRendererStringToImage
uses vtkTextRenderer to render the supplied text to an image.
Definition:
vtkTextRendererStringToImage.h:27
vtkVector2i
Definition:
vtkVector.h:282
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:38
vtkStringToImage::SetScaleToPowerOfTwo
virtual void SetScaleToPowerOfTwo(bool scale)
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 Thu Mar 12 2015 20:31:59 for VTK by
1.8.8