1
.TH "QwtPlotSvgItem" 3 "26 Feb 2007" "Version 5.0.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 QwtDoubleRect &, const QString &fileName)"
34
.RI "bool \fBloadData\fP (const QwtDoubleRect &, const QByteArray &)"
37
.RI "virtual QwtDoubleRect \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 QwtDoubleRect &viewBox, const QRect &rect) const "
53
.RI "QwtDoubleRect \fBviewBox\fP (const QwtDoubleRect &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 "QwtDoubleRect QwtPlotSvgItem::boundingRect () const\fC [virtual]\fP"
105
Bounding rect of the item.
107
Reimplemented from \fBQwtPlotItem\fP.
109
Definition at line 142 of file qwt_plot_svgitem.cpp.
111
Referenced by draw(), and viewBox().
112
.SS "void QwtPlotSvgItem::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect & canvasRect) const\fC [virtual]\fP"
118
\fIpainter\fP Painter
120
\fIxMap\fP X-Scale Map
122
\fIyMap\fP Y-Scale Map
124
\fIcanvasRect\fP Contents rect of the plot canvas
129
Implements \fBQwtPlotItem\fP.
131
Definition at line 170 of file qwt_plot_svgitem.cpp.
133
References boundingRect(), QwtPlotItem::invTransform(), render(), QwtPlotItem::transform(), and viewBox().
134
.SS "bool QwtPlotSvgItem::loadData (const QwtDoubleRect & rect, const QByteArray & data)"
140
\fIrect\fP Bounding rectangle
142
\fIdata\fP in SVG format
147
true, if the SVG data could be loaded
152
Definition at line 123 of file qwt_plot_svgitem.cpp.
154
References QwtPlotItem::itemChanged().
155
.SS "bool QwtPlotSvgItem::loadFile (const QwtDoubleRect & rect, const QString & fileName)"
161
\fIrect\fP Bounding rectangle
163
\fIfileName\fP SVG file name
168
true, if the SVG file could be loaded
173
Definition at line 102 of file qwt_plot_svgitem.cpp.
175
References QwtPlotItem::itemChanged().
176
.SS "void QwtPlotSvgItem::render (QPainter * painter, const QwtDoubleRect & viewBox, const QRect & rect) const\fC [protected]\fP"
182
\fIpainter\fP Painter
184
\fIviewBox\fP View Box, see QSvgRenderer::viewBox
186
\fIrect\fP Traget rectangle on the paint device
191
Definition at line 194 of file qwt_plot_svgitem.cpp.
193
Referenced by draw().
194
.SS "int QwtPlotSvgItem::rtti () const\fC [virtual]\fP"
198
QwtPlotItem::Rtti_PlotSVG
203
Reimplemented from \fBQwtPlotItem\fP.
205
Definition at line 89 of file qwt_plot_svgitem.cpp.
206
.SS "QwtDoubleRect QwtPlotSvgItem::viewBox (const QwtDoubleRect & 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.