VTK
9.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
25
#ifndef vtkStringToImage_h
26
#define vtkStringToImage_h
27
28
#include "
vtkObject.h
"
29
#include "vtkRenderingCoreModule.h"
// For export macro
30
31
class
vtkStdString
;
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
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
41
43
56
virtual
vtkVector2i
GetBounds
(
vtkTextProperty
* property,
const
vtkStdString
&
string
,
int
dpi) = 0;
58
60
67
virtual
int
RenderString(
vtkTextProperty
* property,
const
vtkStdString
&
string
,
int
dpi,
68
vtkImageData
*
data
,
int
text_dims[2] =
nullptr
) = 0;
70
75
virtual
void
SetScaleToPowerOfTwo(
bool
scale
);
76
vtkGetMacro(ScaleToPowerOfTwo,
bool
);
77
78
protected
:
79
vtkStringToImage
();
80
~
vtkStringToImage
()
override
;
81
82
bool
Antialias
;
83
bool
ScaleToPowerOfTwo
;
84
85
private
:
86
vtkStringToImage
(
const
vtkStringToImage
&) =
delete
;
87
void
operator=(
const
vtkStringToImage
&) =
delete
;
88
};
89
90
#endif // vtkStringToImage_h
vtkX3D::data
Definition:
vtkX3D.h:321
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:38
vtkBlockSortHelper::GetBounds
void GetBounds(T a, double bds[6])
Definition:
vtkBlockSortHelper.h:37
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStringToImage
base class for classes that render supplied text to an image.
Definition:
vtkStringToImage.h:36
vtkStringToImage::ScaleToPowerOfTwo
bool ScaleToPowerOfTwo
Definition:
vtkStringToImage.h:83
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:53
vtkVector2i
Some derived classes for the different vectors commonly used.
Definition:
vtkVector.h:421
vtkStringToImage::Antialias
bool Antialias
Definition:
vtkStringToImage.h:82
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:36
vtkObject.h
vtkX3D::scale
Definition:
vtkX3D.h:235
Generated on Mon Oct 16 2023 12:12:08 for VTK by
1.8.10