|
Qwt User's Guide
6.0.2
|
#include <qwt_plot_svgitem.h>

Public Member Functions | |
| QwtPlotSvgItem (const QString &title=QString::null) | |
| QwtPlotSvgItem (const QwtText &title) | |
| virtual | ~QwtPlotSvgItem () |
| virtual QRectF | boundingRect () const |
| virtual void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &rect) const |
| bool | loadData (const QRectF &, const QByteArray &) |
| bool | loadFile (const QRectF &, const QString &fileName) |
| virtual int | rtti () const |
Public Member Functions inherited from QwtPlotItem | |
| QwtPlotItem (const QwtText &title=QwtText()) | |
| virtual | ~QwtPlotItem () |
| void | attach (QwtPlot *plot) |
| void | detach () |
| void | hide () |
| bool | isVisible () const |
| virtual void | itemChanged () |
| virtual QWidget * | legendItem () const |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| QwtPlot * | plot () const |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| void | setAxes (int xAxis, int yAxis) |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| void | setRenderHint (RenderHint, bool on=true) |
| void | setTitle (const QString &title) |
| void | setTitle (const QwtText &title) |
| virtual void | setVisible (bool) |
| void | setXAxis (int axis) |
| void | setYAxis (int axis) |
| void | setZ (double z) |
| void | show () |
| bool | testItemAttribute (ItemAttribute) const |
| bool | testRenderHint (RenderHint) const |
| const QwtText & | title () const |
| virtual void | updateLegend (QwtLegend *) const |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) |
| int | xAxis () const |
| int | yAxis () const |
| double | z () const |
Public Member Functions inherited from QwtLegendItemManager | |
| QwtLegendItemManager () | |
| virtual | ~QwtLegendItemManager () |
| virtual void | drawLegendIdentifier (QPainter *, const QRectF &) const |
Protected Member Functions | |
| void | render (QPainter *painter, const QRectF &viewBox, const QRectF &rect) const |
| const QSvgRenderer & | renderer () const |
| QSvgRenderer & | renderer () |
| QRectF | viewBox (const QRectF &area) const |
Additional Inherited Members | |
Public Types inherited from QwtPlotItem | |
| enum | ItemAttribute { Legend = 0x01, AutoScale = 0x02 } |
| typedef QFlags< ItemAttribute > | ItemAttributes |
| enum | RenderHint { RenderAntialiased = 1 } |
| typedef QFlags< RenderHint > | RenderHints |
| enum | RttiValues { Rtti_PlotItem = 0, Rtti_PlotGrid, Rtti_PlotScale, Rtti_PlotMarker, Rtti_PlotCurve, Rtti_PlotSpectroCurve, Rtti_PlotIntervalCurve, Rtti_PlotHistogram, Rtti_PlotSpectrogram, Rtti_PlotSVG, Rtti_PlotUserItem = 1000 } |
A plot item, which displays data in Scalable Vector Graphics (SVG) format.
SVG images are often used to display maps
|
explicit |
Constructor.
Sets the following item attributes:
| title | Title |
|
explicit |
Constructor.
Sets the following item attributes:
| title | Title |
|
virtual |
Draw the SVG item
| painter | Painter |
| xMap | X-Scale Map |
| yMap | Y-Scale Map |
| canvasRect | Contents rect of the plot canvas |
Implements QwtPlotItem.
| bool QwtPlotSvgItem::loadData | ( | const QRectF & | rect, |
| const QByteArray & | data | ||
| ) |
Load SVG data
| rect | Bounding rectangle |
| data | in SVG format |
| bool QwtPlotSvgItem::loadFile | ( | const QRectF & | rect, |
| const QString & | fileName | ||
| ) |
Load a SVG file
| rect | Bounding rectangle |
| fileName | SVG file name |
|
protected |
Render the SVG data
| painter | Painter |
| viewBox | View Box, see QSvgRenderer::viewBox |
| rect | Traget rectangle on the paint device |
|
protected |
|
protected |
|
virtual |
Reimplemented from QwtPlotItem.
|
protected |
Calculate the viewBox from an rect and boundingRect().
| rect | Rectangle in scale coordinates |
1.8.1