VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Label
vtkFreeTypeLabelRenderStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkFreeTypeLabelRenderStrategy.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
=========================================================================*/
23
#ifndef __vtkFreeTypeLabelRenderStrategy_h
24
#define __vtkFreeTypeLabelRenderStrategy_h
25
26
#include "vtkRenderingLabelModule.h"
// For export macro
27
#include "
vtkLabelRenderStrategy.h
"
28
29
class
vtkActor2D
;
30
class
vtkFreeTypeUtilities
;
31
class
vtkTextMapper
;
32
33
class
VTKRENDERINGLABEL_EXPORT
vtkFreeTypeLabelRenderStrategy
:
public
vtkLabelRenderStrategy
34
{
35
public
:
36
void
PrintSelf
(ostream& os,
vtkIndent
indent);
37
vtkTypeMacro(
vtkFreeTypeLabelRenderStrategy
,
vtkLabelRenderStrategy
);
38
static
vtkFreeTypeLabelRenderStrategy
*
New
();
39
41
42
virtual
bool
SupportsRotation
()
43
{
return
false
; }
45
47
49
virtual
bool
SupportsBoundedSize
()
50
{
return
false
; }
52
54
56
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkStdString
label,
double
bds[4])
57
{ this->Superclass::ComputeLabelBounds(tprop, label, bds); }
58
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkUnicodeString
label,
double
bds[4]);
60
62
64
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label)
65
{ this->Superclass::RenderLabel(x, tprop, label); }
66
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label,
int
width)
67
{ this->Superclass::RenderLabel(x, tprop, label, width); }
68
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkUnicodeString
label);
69
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkUnicodeString
label,
int
width)
70
{ this->Superclass::RenderLabel(x, tprop, label, width); }
72
76
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
77
78
protected
:
79
vtkFreeTypeLabelRenderStrategy
();
80
~
vtkFreeTypeLabelRenderStrategy
();
81
82
vtkFreeTypeUtilities
*
FreeTypeUtilities
;
83
vtkTextMapper
*
Mapper
;
84
vtkActor2D
*
Actor
;
85
86
private
:
87
vtkFreeTypeLabelRenderStrategy
(
const
vtkFreeTypeLabelRenderStrategy
&);
// Not implemented.
88
void
operator=(
const
vtkFreeTypeLabelRenderStrategy
&);
// Not implemented.
89
};
90
91
#endif
92
Generated on Thu May 24 2012 22:22:35 for VTK by
1.8.1