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
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
) = 0;
53
virtual
vtkVector2i
GetBounds(
vtkTextProperty
*property,
54
const
vtkStdString
&
string
) = 0;
56
58
64
virtual
int
RenderString(
vtkTextProperty
*property,
65
const
vtkUnicodeString
&
string
,
66
vtkImageData
*
data
,
67
int
textDims[2] = NULL) = 0;
68
virtual
int
RenderString(
vtkTextProperty
*property,
69
const
vtkStdString
&
string
,
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
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
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:61
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition:
vtkgl.h:15942
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:282
vtkRenderingCoreModule.h
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:38
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition:
vtkRenderingCoreModule.h:15
vtkObject.h
vtkUnicodeString
String class that stores Unicode text.
Definition:
vtkUnicodeString.h:71
Generated on Thu Mar 12 2015 20:31:58 for VTK by
1.8.8