VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Qt
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 "vtkRenderingQtModule.h"
// For export macro
47
#include "
vtkLabeledDataMapper.h
"
48
49
//BTX
50
class
QImage;
51
//ETX
52
53
class
vtkQImageToImageSource
;
54
class
vtkCoordinate
;
55
class
vtkDoubleArray
;
56
class
vtkPlaneSource
;
57
class
vtkPolyDataMapper2D
;
58
class
vtkRenderer
;
59
class
vtkStringArray
;
60
class
vtkTexture
;
61
class
vtkTextureMapToPlane
;
62
class
vtkTree
;
63
class
vtkUnicodeStringArray
;
64
65
class
VTKRENDERINGQT_EXPORT
vtkQtTreeRingLabelMapper
:
public
vtkLabeledDataMapper
66
{
67
public
:
68
static
vtkQtTreeRingLabelMapper
*
New
();
69
vtkTypeMacro(
vtkQtTreeRingLabelMapper
,
vtkLabeledDataMapper
);
70
void
PrintSelf
(ostream& os,
vtkIndent
indent);
71
73
74
virtual
void
RenderOpaqueGeometry
(
vtkViewport
* viewport,
vtkActor2D
* actor);
75
virtual
void
RenderOverlay
(
vtkViewport
*viewport,
vtkActor2D
*actor);
77
79
virtual
vtkTree
*GetInputTree();
80
82
virtual
void
SetSectorsArrayName(
const
char
*
name
);
83
85
88
virtual
void
SetLabelTextProperty
(
vtkTextProperty
*p);
89
vtkGetObjectMacro(LabelTextProperty,
vtkTextProperty
);
90
virtual
void
SetLabelTextProperty
(
vtkTextProperty
*p,
int
type
)
91
{ this->Superclass::SetLabelTextProperty(p, type); }
92
virtual
vtkTextProperty
*
GetLabelTextProperty
(
int
type
)
93
{
return
this->Superclass::GetLabelTextProperty(type); }
95
97
98
vtkSetStringMacro(TextRotationArrayName);
99
vtkGetStringMacro
(TextRotationArrayName);
101
104
virtual
unsigned
long
GetMTime
();
105
106
void
SetRenderer(
vtkRenderer
* ren)
107
{
108
if
(this->Renderer != ren)
109
{
110
this->Renderer = ren;
111
this->
Modified
();
112
}
113
}
114
vtkRenderer
*
GetRenderer
() {
return
this->Renderer; }
115
116
protected
:
117
vtkQtTreeRingLabelMapper
();
118
~
vtkQtTreeRingLabelMapper
();
119
void
LabelTree(
vtkTree
*tree,
vtkDataArray
*sectorInfo,
120
vtkDataArray
*numericData,
vtkStringArray
*stringData,
vtkUnicodeStringArray
*uStringData,
121
int
activeComp,
int
numComps,
vtkViewport
* viewport);
122
void
GetVertexLabel(
vtkIdType
vertex,
vtkDataArray
*numericData,
123
vtkStringArray
*stringData,
124
vtkUnicodeStringArray
*uStringData,
125
int
activeComp,
int
numComps,
126
char
*
string
);
127
128
//Returns true if the center of the sector is in the window
129
// along with the pixel dimensions (width, height) of the sector
130
bool
PointInWindow(
double
*sinfo,
double
*newDim,
double
*textPosDC,
vtkViewport
*viewport);
131
132
vtkViewport
*
CurrentViewPort
;
133
vtkCoordinate
*
VCoord
;
134
vtkQImageToImageSource
*
QtImageSource
;
135
vtkPlaneSource
*
PlaneSource
;
136
vtkRenderer
*
Renderer
;
137
vtkTextProperty
*
LabelTextProperty
;
138
vtkTexture
*
LabelTexture
;
139
vtkTextureMapToPlane
*
TextureMapToPlane
;
140
char
*
TextRotationArrayName
;
141
vtkPolyDataMapper2D
*
polyDataMapper
;
142
QImage*
QtImage
;
143
int
WindowSize[2];
144
145
private
:
146
vtkQtTreeRingLabelMapper
(
const
vtkQtTreeRingLabelMapper
&);
// Not implemented.
147
void
operator=(
const
vtkQtTreeRingLabelMapper
&);
// Not implemented.
148
};
149
150
151
#endif
Generated on Thu May 24 2012 22:22:37 for VTK by
1.8.1