VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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 "
vtkLabelRenderStrategy.h
"
27
28
class
vtkActor2D
;
29
class
vtkFreeTypeUtilities
;
30
class
vtkTextMapper
;
31
32
class
VTK_RENDERING_EXPORT
vtkFreeTypeLabelRenderStrategy
:
public
vtkLabelRenderStrategy
33
{
34
public
:
35
void
PrintSelf
(ostream& os,
vtkIndent
indent);
36
vtkTypeMacro(
vtkFreeTypeLabelRenderStrategy
,
vtkLabelRenderStrategy
);
37
static
vtkFreeTypeLabelRenderStrategy
*
New
();
38
40
41
virtual
bool
SupportsRotation
()
42
{
return
false
; }
44
46
48
virtual
bool
SupportsBoundedSize
()
49
{
return
false
; }
51
53
55
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkStdString
label,
double
bds[4])
56
{ this->Superclass::ComputeLabelBounds(tprop, label, bds); }
57
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkUnicodeString
label,
double
bds[4]);
59
61
63
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label)
64
{ this->Superclass::RenderLabel(x, tprop, label); }
65
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label,
int
width)
66
{ this->Superclass::RenderLabel(x, tprop, label, width); }
67
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkUnicodeString
label);
68
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkUnicodeString
label,
int
width)
69
{ this->Superclass::RenderLabel(x, tprop, label, width); }
71
75
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
76
77
protected
:
78
vtkFreeTypeLabelRenderStrategy
();
79
~
vtkFreeTypeLabelRenderStrategy
();
80
81
vtkFreeTypeUtilities
*
FreeTypeUtilities
;
82
vtkTextMapper
*
Mapper
;
83
vtkActor2D
*
Actor
;
84
85
private
:
86
vtkFreeTypeLabelRenderStrategy
(
const
vtkFreeTypeLabelRenderStrategy
&);
// Not implemented.
87
void
operator=(
const
vtkFreeTypeLabelRenderStrategy
&);
// Not implemented.
88
};
89
90
#endif
91
Generated on Wed Nov 21 2012 21:34:03 for VTK by
1.8.2