QwtPlotSvgItem(3) | Qwt User's Guide | QwtPlotSvgItem(3) |
NAME¶
QwtPlotSvgItem -
SYNOPSIS¶
#include <qwt_plot_svgitem.h>
Inherits QwtPlotItem.
Public Member Functions¶
QwtPlotSvgItem (const QString
&title=QString::null)
QwtPlotSvgItem (const QwtText &title)
virtual ~QwtPlotSvgItem ()
virtual QwtDoubleRect boundingRect () const
virtual void draw (QPainter *p, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, const QRect &rect) const
bool loadData (const QwtDoubleRect &, const QByteArray &)
bool loadFile (const QwtDoubleRect &, const QString &fileName)
virtual int rtti () const
Protected Member Functions¶
void render (QPainter *painter, const QwtDoubleRect
&viewBox, const QRect &rect) const
QwtDoubleRect viewBox (const QwtDoubleRect &area) const
Additional Inherited Members¶
Detailed Description¶
A plot item, which displays data in Scalable Vector Graphics (SVG) format.
SVG images are often used to display maps
Constructor & Destructor Documentation¶
QwtPlotSvgItem::QwtPlotSvgItem (const QString &title = QString::null) [explicit]¶
Constructor. Sets the following item attributes:
- QwtPlotItem::AutoScale: true
- QwtPlotItem::Legend: false
Parameters:
QwtPlotSvgItem::QwtPlotSvgItem (const QwtText &title) [explicit]¶
Constructor. Sets the following item attributes:
- QwtPlotItem::AutoScale: true
- QwtPlotItem::Legend: false
Parameters:
Member Function Documentation¶
void QwtPlotSvgItem::draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &canvasRect) const [virtual]¶
Draw the SVG item
Parameters:
xMap X-Scale Map
yMap Y-Scale Map
canvasRect Contents rect of the plot canvas
Implements QwtPlotItem.
bool QwtPlotSvgItem::loadData (const QwtDoubleRect &rect, const QByteArray &data)¶
Load SVG data
Parameters:
data in SVG format
Returns:
bool QwtPlotSvgItem::loadFile (const QwtDoubleRect &rect, const QString &fileName)¶
Load a SVG file
Parameters:
fileName SVG file name
Returns:
void QwtPlotSvgItem::render (QPainter *painter, const QwtDoubleRect &viewBox, const QRect &rect) const [protected]¶
Render the SVG data
Parameters:
viewBox View Box, see QSvgRenderer::viewBox
rect Traget rectangle on the paint device
int QwtPlotSvgItem::rtti () const [virtual]¶
Returns:
Reimplemented from QwtPlotItem.
QwtDoubleRect QwtPlotSvgItem::viewBox (const QwtDoubleRect &rect) const [protected]¶
Calculate the viewBox from an rect and boundingRect().
Parameters:
Returns:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |