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
vtkFreeTypeStringToImage.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkFreeTypeStringToImage.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 __vtkFreeTypeStringToImage_h
27
#define __vtkFreeTypeStringToImage_h
28
29
#include "
vtkRenderingFreeTypeModule.h
"
// For export macro
30
#include "
vtkStringToImage.h
"
31
#include "
vtkSmartPointer.h
"
// For SP ivars
32
33
class
VTKRENDERINGFREETYPE_EXPORT
vtkFreeTypeStringToImage
:
public
vtkStringToImage
34
{
35
public
:
36
vtkTypeMacro(
vtkFreeTypeStringToImage
,
vtkStringToImage
);
37
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
38
39
static
vtkFreeTypeStringToImage
*
New
();
40
42
51
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
*property,
52
const
vtkUnicodeString
&
string
);
53
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
*property,
54
const
vtkStdString
&
string
);
56
58
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
76
virtual
void
SetScaleToPowerOfTwo
(
bool
scale
);
77
79
void
DeepCopy
(
vtkFreeTypeStringToImage
*utility);
80
81
protected
:
82
vtkFreeTypeStringToImage
();
83
~
vtkFreeTypeStringToImage
();
84
85
class
Internals;
86
Internals*
Implementation
;
87
88
private
:
89
vtkFreeTypeStringToImage
(
const
vtkFreeTypeStringToImage
&);
// Not implemented.
90
void
operator=(
const
vtkFreeTypeStringToImage
&);
// Not implemented.
91
};
92
93
#endif //__vtkFreeTypeStringToImage_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
vtkFreeTypeStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkFreeTypeStringToImage.h:33
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition:
vtkgl.h:15942
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
vtkVector2i
Definition:
vtkVector.h:282
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:38
vtkSmartPointer.h
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
vtkFreeTypeStringToImage::Implementation
Internals * Implementation
Definition:
vtkFreeTypeStringToImage.h:85
vtkStringToImage::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Generated on Sat Jan 3 2015 22:29:55 for VTK by
1.8.8