VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
24
#ifndef vtkStringToImage_h
25
#define vtkStringToImage_h
26
27
#include "
vtkRenderingCoreModule.h
"
// For export macro
28
#include "
vtkObject.h
"
29
30
class
vtkStdString
;
31
class
vtkUnicodeString
;
32
class
vtkTextProperty
;
33
class
vtkImageData
;
34
class
vtkVector2i
;
35
36
class
VTKRENDERINGCORE_EXPORT
vtkStringToImage
:
public
vtkObject
37
{
38
public
:
39
vtkTypeMacro(
vtkStringToImage
,
vtkObject
);
40
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
41
43
52
virtual
vtkVector2i
GetBounds(
vtkTextProperty
*property,
53
const
vtkUnicodeString
&
string
,
int
dpi) = 0;
54
virtual
vtkVector2i
GetBounds(
vtkTextProperty
*property,
55
const
vtkStdString
&
string
,
int
dpi) = 0;
57
59
65
virtual
int
RenderString(
vtkTextProperty
*property,
66
const
vtkUnicodeString
&
string
,
int
dpi,
67
vtkImageData
*
data
,
68
int
textDims[2] = NULL) = 0;
69
virtual
int
RenderString(
vtkTextProperty
*property,
70
const
vtkStdString
&
string
,
int
dpi,
71
vtkImageData
*
data
,
72
int
text_dims[2] = NULL) = 0;
74
76
78
virtual
void
SetScaleToPowerOfTwo(
bool
scale
);
79
vtkGetMacro(ScaleToPowerOfTwo,
bool
)
81
82
protected:
83
vtkStringToImage
();
84
~vtkStringToImage();
85
86
bool
Antialias;
87
bool
ScaleToPowerOfTwo;
88
89
private:
90
vtkStringToImage(const vtkStringToImage &);
// Not implemented.
91
void
operator=(const vtkStringToImage &);
// Not implemented.
92
};
93
94
#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
base class for classes that render supplied text to an image.
Definition:
vtkStringToImage.h:36
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:269
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 on Wed Dec 16 2015 17:15:08 for VTK by
1.8.9.1