VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkQtTreeRingLabelMapper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtTreeRingLabelMapper.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
43
#ifndef __vtkQtTreeRingLabelMapper_h
44
#define __vtkQtTreeRingLabelMapper_h
45
46
#include "
vtkLabeledDataMapper.h
"
47
48
//BTX
49
class
QImage;
50
//ETX
51
52
class
vtkQImageToImageSource
;
53
class
vtkCoordinate
;
54
class
vtkDoubleArray
;
55
class
vtkPlaneSource
;
56
class
vtkPolyDataMapper2D
;
57
class
vtkRenderer
;
58
class
vtkStringArray
;
59
class
vtkTexture
;
60
class
vtkTextureMapToPlane
;
61
class
vtkTree
;
62
class
vtkUnicodeStringArray
;
63
64
class
VTK_RENDERING_EXPORT
vtkQtTreeRingLabelMapper
:
public
vtkLabeledDataMapper
65
{
66
public
:
67
static
vtkQtTreeRingLabelMapper
*
New
();
68
vtkTypeMacro(
vtkQtTreeRingLabelMapper
,
vtkLabeledDataMapper
);
69
void
PrintSelf
(ostream& os,
vtkIndent
indent);
70
72
73
virtual
void
RenderOpaqueGeometry
(
vtkViewport
* viewport,
vtkActor2D
* actor);
74
virtual
void
RenderOverlay
(
vtkViewport
*viewport,
vtkActor2D
*actor);
76
78
virtual
vtkTree
*GetInputTree();
79
81
virtual
void
SetSectorsArrayName(
const
char
*
name
);
82
84
87
virtual
void
SetLabelTextProperty
(
vtkTextProperty
*p);
88
vtkGetObjectMacro(LabelTextProperty,
vtkTextProperty
);
89
virtual
void
SetLabelTextProperty
(
vtkTextProperty
*p,
int
type
)
90
{ this->Superclass::SetLabelTextProperty(p, type); }
91
virtual
vtkTextProperty
*
GetLabelTextProperty
(
int
type
)
92
{
return
this->Superclass::GetLabelTextProperty(type); }
94
96
97
vtkSetStringMacro(TextRotationArrayName);
98
vtkGetStringMacro(TextRotationArrayName);
100
103
virtual
unsigned
long
GetMTime
();
104
105
void
SetRenderer
(
vtkRenderer
* ren)
106
{
107
if
(this->Renderer != ren)
108
{
109
this->Renderer = ren;
110
this->
Modified
();
111
}
112
}
113
vtkRenderer
*
GetRenderer
() {
return
this->Renderer; }
114
115
protected
:
116
vtkQtTreeRingLabelMapper
();
117
~
vtkQtTreeRingLabelMapper
();
118
void
LabelTree(
vtkTree
*tree,
vtkDataArray
*sectorInfo,
119
vtkDataArray
*numericData,
vtkStringArray
*stringData,
vtkUnicodeStringArray
*uStringData,
120
int
activeComp,
int
numComps,
vtkViewport
* viewport);
121
void
GetVertexLabel(
vtkIdType
vertex,
vtkDataArray
*numericData,
122
vtkStringArray
*stringData,
123
vtkUnicodeStringArray
*uStringData,
124
int
activeComp,
int
numComps,
125
char
*
string
);
126
127
//Returns true if the center of the sector is in the window
128
// along with the pixel dimensions (width, height) of the sector
129
bool
PointInWindow(
double
*sinfo,
double
*newDim,
double
*textPosDC,
vtkViewport
*viewport);
130
131
vtkViewport
*
CurrentViewPort
;
132
vtkCoordinate
*
VCoord
;
133
vtkQImageToImageSource
*
QtImageSource
;
134
vtkPlaneSource
*
PlaneSource
;
135
vtkRenderer
*
Renderer
;
136
vtkTextProperty
*
LabelTextProperty
;
137
vtkTexture
*
LabelTexture
;
138
vtkTextureMapToPlane
*
TextureMapToPlane
;
139
char
*
TextRotationArrayName
;
140
vtkPolyDataMapper2D
*
polyDataMapper
;
141
QImage*
QtImage
;
142
int
WindowSize[2];
143
144
private
:
145
vtkQtTreeRingLabelMapper
(
const
vtkQtTreeRingLabelMapper
&);
// Not implemented.
146
void
operator=(
const
vtkQtTreeRingLabelMapper
&);
// Not implemented.
147
};
148
149
150
#endif
Generated on Fri Aug 2 2013 12:20:02 for VTK by
1.8.4