123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- .TH "QwtPlotSvgItem" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- QwtPlotSvgItem \- 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())"
- .br
- .RI "Constructor\&. "
- .ti -1c
- .RI "\fBQwtPlotSvgItem\fP (const \fBQwtText\fP &\fBtitle\fP)"
- .br
- .RI "Constructor\&. "
- .ti -1c
- .RI "virtual \fB~QwtPlotSvgItem\fP ()"
- .br
- .RI "Destructor\&. "
- .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 "Bounding rectangle of the item\&. "
- .ti -1c
- .RI "virtual void \fBdraw\fP (QPainter *, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRectF &canvasRect) 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 *, const QRectF &\fBviewBox\fP, const QRectF &rect) const"
- .br
- .ti -1c
- .RI "QRectF \fBviewBox\fP (const QRectF &rect) 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()\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 "QSvgRenderer & QwtPlotSvgItem::renderer ()\fC [protected]\fP"
- .PP
- \fBReturns\fP
- .RS 4
- Renderer used to render the SVG data
- .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 "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\&.
|