File: QwtPlotSvgItem.3

package info (click to toggle)
qwt 6.1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,848 kB
  • ctags: 15,811
  • sloc: cpp: 57,382; makefile: 41
file content (214 lines) | stat: -rw-r--r-- 4,410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
.TH "QwtPlotSvgItem" 3 "Thu Dec 11 2014" "Version 6.1.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotSvgItem \- 
.PP
A plot item, which displays data in Scalable Vector Graphics (SVG) format\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_svgitem\&.h>\fP
.PP
Inherits \fBQwtPlotItem\fP\&.
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQwtPlotSvgItem\fP (const QString &\fBtitle\fP=QString::null)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "\fBQwtPlotSvgItem\fP (const \fBQwtText\fP &\fBtitle\fP)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "virtual \fB~QwtPlotSvgItem\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "bool \fBloadFile\fP (const QRectF &, const QString &fileName)"
.br
.ti -1c
.RI "bool \fBloadData\fP (const QRectF &, const QByteArray &)"
.br
.ti -1c
.RI "virtual QRectF \fBboundingRect\fP () const "
.br
.RI "\fIBounding rectangle of the item\&. \fP"
.ti -1c
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRectF &rect) const "
.br
.ti -1c
.RI "virtual int \fBrtti\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "const QSvgRenderer & \fBrenderer\fP () const "
.br
.ti -1c
.RI "QSvgRenderer & \fBrenderer\fP ()"
.br
.ti -1c
.RI "void \fBrender\fP (QPainter *painter, const QRectF &\fBviewBox\fP, const QRectF &rect) const "
.br
.ti -1c
.RI "QRectF \fBviewBox\fP (const QRectF &area) const "
.br
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP 
A plot item, which displays data in Scalable Vector Graphics (SVG) format\&. 

SVG images are often used to display maps 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "QwtPlotSvgItem::QwtPlotSvgItem (const QString &title = \fCQString::null\fP)\fC [explicit]\fP"

.PP
Constructor\&. Sets the following item attributes:
.IP "\(bu" 2
\fBQwtPlotItem::AutoScale\fP: true
.IP "\(bu" 2
\fBQwtPlotItem::Legend\fP: false
.PP
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP Title 
.RE
.PP

.SS "QwtPlotSvgItem::QwtPlotSvgItem (const \fBQwtText\fP &title)\fC [explicit]\fP"

.PP
Constructor\&. Sets the following item attributes:
.IP "\(bu" 2
\fBQwtPlotItem::AutoScale\fP: true
.IP "\(bu" 2
\fBQwtPlotItem::Legend\fP: false
.PP
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP Title 
.RE
.PP

.SH "Member Function Documentation"
.PP 
.SS "void QwtPlotSvgItem::draw (QPainter *painter, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRectF &canvasRect) const\fC [virtual]\fP"
Draw the SVG item
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter 
.br
\fIxMap\fP X-Scale Map 
.br
\fIyMap\fP Y-Scale Map 
.br
\fIcanvasRect\fP Contents rect of the plot canvas 
.RE
.PP

.PP
Implements \fBQwtPlotItem\fP\&.
.SS "bool QwtPlotSvgItem::loadData (const QRectF &rect, const QByteArray &data)"
Load SVG data
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Bounding rectangle 
.br
\fIdata\fP in SVG format
.RE
.PP
\fBReturns:\fP
.RS 4
true, if the SVG data could be loaded 
.RE
.PP

.SS "bool QwtPlotSvgItem::loadFile (const QRectF &rect, const QString &fileName)"
Load a SVG file
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Bounding rectangle 
.br
\fIfileName\fP SVG file name
.RE
.PP
\fBReturns:\fP
.RS 4
true, if the SVG file could be loaded 
.RE
.PP

.SS "void QwtPlotSvgItem::render (QPainter *painter, const QRectF &viewBox, const QRectF &rect) const\fC [protected]\fP"
Render the SVG data
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter 
.br
\fIviewBox\fP View Box, see QSvgRenderer::viewBox() 
.br
\fIrect\fP Target rectangle on the paint device 
.RE
.PP

.SS "const QSvgRenderer & QwtPlotSvgItem::renderer () const\fC [protected]\fP"

.PP
\fBReturns:\fP
.RS 4
Renderer used to render the SVG data 
.RE
.PP

.SS "QSvgRenderer & QwtPlotSvgItem::renderer ()\fC [protected]\fP"

.PP
\fBReturns:\fP
.RS 4
Renderer used to render the SVG data 
.RE
.PP

.SS "int QwtPlotSvgItem::rtti () const\fC [virtual]\fP"

.PP
\fBReturns:\fP
.RS 4
\fBQwtPlotItem::Rtti_PlotSVG\fP 
.RE
.PP

.PP
Reimplemented from \fBQwtPlotItem\fP\&.
.SS "QRectF QwtPlotSvgItem::viewBox (const QRectF &rect) const\fC [protected]\fP"
Calculate the view box from rect and \fBboundingRect()\fP\&.
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Rectangle in scale coordinates 
.RE
.PP
\fBReturns:\fP
.RS 4
View box, see QSvgRenderer::viewBox() 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.