VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Rendering
Core
vtkStringToImage.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkStringToImage.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
23
#ifndef vtkStringToImage_h
24
#define vtkStringToImage_h
25
26
#include "
vtkRenderingCoreModule.h
"
// For export macro
27
#include "
vtkObject.h
"
28
29
class
vtkStdString
;
30
class
vtkUnicodeString
;
31
class
vtkTextProperty
;
32
class
vtkImageData
;
33
class
vtkVector2i
;
34
35
class
VTKRENDERINGCORE_EXPORT
vtkStringToImage
:
public
vtkObject
36
{
37
public
:
38
vtkTypeMacro(
vtkStringToImage
,
vtkObject
);
39
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
40
42
51
virtual
vtkVector2i
GetBounds(
vtkTextProperty
*property,
52
const
vtkUnicodeString
&
string
,
int
dpi) = 0;
53
virtual
vtkVector2i
GetBounds(
vtkTextProperty
*property,
54
const
vtkStdString
&
string
,
int
dpi) = 0;
56
58
64
virtual
int
RenderString(
vtkTextProperty
*property,
65
const
vtkUnicodeString
&
string
,
int
dpi,
66
vtkImageData
*
data
,
67
int
textDims[2] = NULL) = 0;
68
virtual
int
RenderString(
vtkTextProperty
*property,
69
const
vtkStdString
&
string
,
int
dpi,
70
vtkImageData
*
data
,
71
int
text_dims[2] = NULL) = 0;
73
75
77
virtual
void
SetScaleToPowerOfTwo(
bool
scale
);
78
vtkGetMacro(ScaleToPowerOfTwo,
bool
)
80
81
protected:
82
vtkStringToImage
();
83
~vtkStringToImage();
84
85
bool
Antialias;
86
bool
ScaleToPowerOfTwo;
87
88
private:
89
vtkStringToImage(const vtkStringToImage &);
// Not implemented.
90
void
operator=(const vtkStringToImage &);
// Not implemented.
91
};
92
93
#endif //vtkStringToImage_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:61
vtkStringToImage
uses Qt to render the supplied text to an image.
Definition:
vtkStringToImage.h:35
vtkObject::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
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:265
vtkRenderingCoreModule.h
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:38
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition:
vtkRenderingCoreModule.h:15
vtkObject.h
vtkX3D::scale
Definition:
vtkX3D.h:229
vtkUnicodeString
String class that stores Unicode text.
Definition:
vtkUnicodeString.h:71
Generated by
1.8.9.1