1
.TH "QwtPlotSvgItem" 3 "24 May 2008" "Version 5.1.1" "Qwt User's Guide" \" -*- nroff -*-
9
Inherits \fBQwtPlotItem\fP.
11
.SH "Detailed Description"
13
A plot item, which displays data in Scalable Vector Graphics (SVG) format.
15
SVG images are often used to display maps
17
Definition at line 31 of file qwt_plot_svgitem.h.
18
.SS "Public Member Functions"
22
.RI "\fBQwtPlotSvgItem\fP (const QString &title=QString::null)"
25
.RI "\fBQwtPlotSvgItem\fP (const \fBQwtText\fP &title)"
28
.RI "virtual \fB~QwtPlotSvgItem\fP ()"
31
.RI "bool \fBloadFile\fP (const \fBQwtDoubleRect\fP &, const QString &fileName)"
34
.RI "bool \fBloadData\fP (const \fBQwtDoubleRect\fP &, const QByteArray &)"
37
.RI "virtual \fBQwtDoubleRect\fP \fBboundingRect\fP () const"
40
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &rect) const"
43
.RI "virtual int \fBrtti\fP () const"
46
.SS "Protected Member Functions"
50
.RI "void \fBrender\fP (QPainter *painter, const \fBQwtDoubleRect\fP &viewBox, const QRect &rect) const"
53
.RI "\fBQwtDoubleRect\fP \fBviewBox\fP (const \fBQwtDoubleRect\fP &area) const"
56
.SH "Constructor & Destructor Documentation"
58
.SS "QwtPlotSvgItem::QwtPlotSvgItem (const QString & title = \fCQString::null\fP)\fC [explicit]\fP"
62
Sets the following item attributes:
64
QwtPlotItem::AutoScale: true
66
QwtPlotItem::Legend: false
76
Definition at line 51 of file qwt_plot_svgitem.cpp.
77
.SS "QwtPlotSvgItem::QwtPlotSvgItem (const \fBQwtText\fP & title)\fC [explicit]\fP"
81
Sets the following item attributes:
83
QwtPlotItem::AutoScale: true
85
QwtPlotItem::Legend: false
95
Definition at line 66 of file qwt_plot_svgitem.cpp.
96
.SS "QwtPlotSvgItem::~QwtPlotSvgItem ()\fC [virtual]\fP"
100
Definition at line 73 of file qwt_plot_svgitem.cpp.
101
.SH "Member Function Documentation"
103
.SS "bool QwtPlotSvgItem::loadFile (const \fBQwtDoubleRect\fP & rect, const QString & fileName)"
109
\fIrect\fP Bounding rectangle
111
\fIfileName\fP SVG file name
116
true, if the SVG file could be loaded
121
Definition at line 102 of file qwt_plot_svgitem.cpp.
123
References QwtPlotItem::itemChanged().
124
.SS "bool QwtPlotSvgItem::loadData (const \fBQwtDoubleRect\fP & rect, const QByteArray & data)"
130
\fIrect\fP Bounding rectangle
132
\fIdata\fP in SVG format
137
true, if the SVG data could be loaded
142
Definition at line 123 of file qwt_plot_svgitem.cpp.
144
References QwtPlotItem::itemChanged().
145
.SS "\fBQwtDoubleRect\fP QwtPlotSvgItem::boundingRect () const\fC [virtual]\fP"
147
Bounding rect of the item.
149
Reimplemented from \fBQwtPlotItem\fP.
151
Definition at line 142 of file qwt_plot_svgitem.cpp.
153
Referenced by draw(), and viewBox().
154
.SS "void QwtPlotSvgItem::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect & canvasRect) const\fC [virtual]\fP"
160
\fIpainter\fP Painter
162
\fIxMap\fP X-Scale Map
164
\fIyMap\fP Y-Scale Map
166
\fIcanvasRect\fP Contents rect of the plot canvas
171
Implements \fBQwtPlotItem\fP.
173
Definition at line 170 of file qwt_plot_svgitem.cpp.
175
References boundingRect(), QwtPlotItem::invTransform(), render(), QwtPlotItem::transform(), and viewBox().
176
.SS "int QwtPlotSvgItem::rtti () const\fC [virtual]\fP"
180
QwtPlotItem::Rtti_PlotSVG
185
Reimplemented from \fBQwtPlotItem\fP.
187
Definition at line 89 of file qwt_plot_svgitem.cpp.
188
.SS "void QwtPlotSvgItem::render (QPainter * painter, const \fBQwtDoubleRect\fP & viewBox, const QRect & rect) const\fC [protected]\fP"
194
\fIpainter\fP Painter
196
\fIviewBox\fP View Box, see QSvgRenderer::viewBox
198
\fIrect\fP Traget rectangle on the paint device
203
Definition at line 194 of file qwt_plot_svgitem.cpp.
205
Referenced by draw().
206
.SS "\fBQwtDoubleRect\fP QwtPlotSvgItem::viewBox (const \fBQwtDoubleRect\fP & rect) const\fC [protected]\fP"
208
Calculate the viewBox from an rect and \fBboundingRect()\fP.
212
\fIrect\fP Rectangle in scale coordinates
217
viewBox View Box, see QSvgRenderer::viewBox
222
Definition at line 254 of file qwt_plot_svgitem.cpp.
224
References boundingRect(), QwtScaleMap::setPaintInterval(), QwtScaleMap::setScaleInterval(), and QwtScaleMap::xTransform().
226
Referenced by draw().
230
Generated automatically by Doxygen for Qwt User's Guide from the source code.