VTK
9.4.20241123
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Label
vtkFreeTypeLabelRenderStrategy.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
12
#ifndef vtkFreeTypeLabelRenderStrategy_h
13
#define vtkFreeTypeLabelRenderStrategy_h
14
15
#include "
vtkLabelRenderStrategy.h
"
16
#include "vtkRenderingLabelModule.h"
// For export macro
17
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
18
19
VTK_ABI_NAMESPACE_BEGIN
20
class
vtkActor2D
;
21
class
vtkTextRenderer
;
22
class
vtkTextMapper
;
23
24
class
VTKRENDERINGLABEL_EXPORT
VTK_MARSHALAUTO
vtkFreeTypeLabelRenderStrategy
25
:
public
vtkLabelRenderStrategy
26
{
27
public
:
28
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
29
vtkTypeMacro(
vtkFreeTypeLabelRenderStrategy
,
vtkLabelRenderStrategy
);
30
static
vtkFreeTypeLabelRenderStrategy
*
New
();
31
35
bool
SupportsRotation
()
override
{
return
false
; }
36
40
bool
SupportsBoundedSize
()
override
{
return
false
; }
41
45
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkStdString
label,
double
bds[4])
override
;
46
47
using
vtkLabelRenderStrategy::RenderLabel
;
52
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label)
override
;
53
59
void
ReleaseGraphicsResources
(
vtkWindow
* window)
override
;
60
61
protected
:
62
vtkFreeTypeLabelRenderStrategy
();
63
~vtkFreeTypeLabelRenderStrategy
()
override
;
64
65
vtkTextRenderer
*
TextRenderer
;
66
vtkTextMapper
*
Mapper
;
67
vtkActor2D
*
Actor
;
68
69
private
:
70
vtkFreeTypeLabelRenderStrategy
(
const
vtkFreeTypeLabelRenderStrategy
&) =
delete
;
71
void
operator=(
const
vtkFreeTypeLabelRenderStrategy
&) =
delete
;
72
};
73
74
VTK_ABI_NAMESPACE_END
75
#endif
vtkActor2D
a actor that draws 2D data
Definition
vtkActor2D.h:145
vtkFreeTypeLabelRenderStrategy
Renders labels with freetype.
Definition
vtkFreeTypeLabelRenderStrategy.h:26
vtkFreeTypeLabelRenderStrategy::SupportsBoundedSize
bool SupportsBoundedSize() override
The free type render strategy currently does not support bounded size labels.
Definition
vtkFreeTypeLabelRenderStrategy.h:40
vtkFreeTypeLabelRenderStrategy::SupportsRotation
bool SupportsRotation() override
The free type render strategy currently does not support rotation.
Definition
vtkFreeTypeLabelRenderStrategy.h:35
vtkFreeTypeLabelRenderStrategy::Actor
vtkActor2D * Actor
Definition
vtkFreeTypeLabelRenderStrategy.h:67
vtkFreeTypeLabelRenderStrategy::vtkFreeTypeLabelRenderStrategy
vtkFreeTypeLabelRenderStrategy()
vtkFreeTypeLabelRenderStrategy::Mapper
vtkTextMapper * Mapper
Definition
vtkFreeTypeLabelRenderStrategy.h:66
vtkFreeTypeLabelRenderStrategy::New
static vtkFreeTypeLabelRenderStrategy * New()
vtkFreeTypeLabelRenderStrategy::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this strategy.
vtkFreeTypeLabelRenderStrategy::~vtkFreeTypeLabelRenderStrategy
~vtkFreeTypeLabelRenderStrategy() override
vtkFreeTypeLabelRenderStrategy::TextRenderer
vtkTextRenderer * TextRenderer
Definition
vtkFreeTypeLabelRenderStrategy.h:65
vtkFreeTypeLabelRenderStrategy::RenderLabel
void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label) override
Render a label at a location in world coordinates.
vtkFreeTypeLabelRenderStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFreeTypeLabelRenderStrategy::ComputeLabelBounds
void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4]) override
Compute the bounds of a label.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkLabelRenderStrategy
Superclass for label rendering implementations.
Definition
vtkLabelRenderStrategy.h:26
vtkLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)=0
Render a label at a location in display coordinates.
vtkStdString
Wrapper around std::string to keep symbols short.
Definition
vtkStdString.h:78
vtkTextMapper
2D text annotation
Definition
vtkTextMapper.h:149
vtkTextProperty
represent text properties.
Definition
vtkTextProperty.h:136
vtkTextRenderer
Interface for generating images and path data from string data, using multiple backends.
Definition
vtkTextRenderer.h:71
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:48
vtkLabelRenderStrategy.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Sat Nov 23 2024 09:51:19 for VTK by
1.9.7