VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkQtLabelRenderStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtLabelRenderStrategy.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
=========================================================================*/
30
#ifndef __vtkQtLabelRenderStrategy_h
31
#define __vtkQtLabelRenderStrategy_h
32
33
#include "
vtkLabelRenderStrategy.h
"
34
35
class
vtkLabelSizeCalculator
;
36
class
vtkLabeledDataMapper
;
37
class
vtkPlaneSource
;
38
class
vtkPolyDataMapper2D
;
39
class
vtkQImageToImageSource
;
40
class
vtkTexture
;
41
class
vtkTexturedActor2D
;
42
class
vtkTextureMapToPlane
;
43
44
class
VTK_RENDERING_EXPORT
vtkQtLabelRenderStrategy
:
public
vtkLabelRenderStrategy
45
{
46
public
:
47
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
vtkTypeMacro(
vtkQtLabelRenderStrategy
,
vtkLabelRenderStrategy
);
49
static
vtkQtLabelRenderStrategy
*
New
();
50
52
54
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkStdString
label,
55
double
bds[4])
56
{ this->Superclass::ComputeLabelBounds(tprop, label, bds); }
57
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkUnicodeString
label,
58
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,
67
int
maxWidth)
68
{ this->Superclass::RenderLabel(x, tprop, label, maxWidth); }
69
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
70
vtkUnicodeString
label);
71
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
72
vtkUnicodeString
label,
int
maxWidth);
74
76
virtual
void
StartFrame
();
77
79
virtual
void
EndFrame
();
80
84
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
85
86
protected
:
87
vtkQtLabelRenderStrategy
();
88
~
vtkQtLabelRenderStrategy
();
89
90
//BTX
91
class
Internals;
92
Internals*
Implementation
;
93
//ETX
94
95
vtkQImageToImageSource
*
QImageToImage
;
96
vtkPlaneSource
*
PlaneSource
;
97
vtkTextureMapToPlane
*
TextureMapToPlane
;
98
vtkTexture
*
Texture
;
99
vtkPolyDataMapper2D
*
Mapper
;
100
vtkTexturedActor2D
*
Actor
;
101
bool
AntialiasText
;
// Should the text be antialiased, inherited from render window.
102
103
private
:
104
vtkQtLabelRenderStrategy
(
const
vtkQtLabelRenderStrategy
&);
// Not implemented.
105
void
operator=(
const
vtkQtLabelRenderStrategy
&);
// Not implemented.
106
};
107
108
#endif
Generated on Sun Sep 9 2012 13:03:45 for VTK by
1.8.1.2