VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Qt
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 "vtkRenderingQtModule.h"
// For export macro
34
#include "
vtkLabelRenderStrategy.h
"
35
36
class
vtkLabelSizeCalculator
;
37
class
vtkLabeledDataMapper
;
38
class
vtkPlaneSource
;
39
class
vtkPolyDataMapper2D
;
40
class
vtkQImageToImageSource
;
41
class
vtkTexture
;
42
class
vtkTexturedActor2D
;
43
class
vtkTextureMapToPlane
;
44
45
class
VTKRENDERINGQT_EXPORT
vtkQtLabelRenderStrategy
:
public
vtkLabelRenderStrategy
46
{
47
public
:
48
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
vtkTypeMacro(
vtkQtLabelRenderStrategy
,
vtkLabelRenderStrategy
);
50
static
vtkQtLabelRenderStrategy
*
New
();
51
53
55
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkStdString
label,
56
double
bds[4])
57
{ this->Superclass::ComputeLabelBounds(tprop, label, bds); }
58
virtual
void
ComputeLabelBounds
(
vtkTextProperty
* tprop,
vtkUnicodeString
label,
59
double
bds[4]);
61
63
65
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label)
66
{ this->Superclass::RenderLabel(x, tprop, label); }
67
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
vtkStdString
label,
68
int
maxWidth)
69
{ this->Superclass::RenderLabel(x, tprop, label, maxWidth); }
70
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
71
vtkUnicodeString
label);
72
virtual
void
RenderLabel
(
int
x[2],
vtkTextProperty
* tprop,
73
vtkUnicodeString
label,
int
maxWidth);
75
77
virtual
void
StartFrame
();
78
80
virtual
void
EndFrame
();
81
85
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
86
87
protected
:
88
vtkQtLabelRenderStrategy
();
89
~
vtkQtLabelRenderStrategy
();
90
91
//BTX
92
class
Internals;
93
Internals*
Implementation
;
94
//ETX
95
96
vtkQImageToImageSource
*
QImageToImage
;
97
vtkPlaneSource
*
PlaneSource
;
98
vtkTextureMapToPlane
*
TextureMapToPlane
;
99
vtkTexture
*
Texture
;
100
vtkPolyDataMapper2D
*
Mapper
;
101
vtkTexturedActor2D
*
Actor
;
102
bool
AntialiasText
;
// Should the text be antialiased, inherited from render window.
103
104
private
:
105
vtkQtLabelRenderStrategy
(
const
vtkQtLabelRenderStrategy
&);
// Not implemented.
106
void
operator=(
const
vtkQtLabelRenderStrategy
&);
// Not implemented.
107
};
108
109
#endif
Generated on Thu May 24 2012 22:22:37 for VTK by
1.8.1