QwtPlotSvgItem(3)
๐ NAME ๐
QwtPlotSvgItem โ and honestly? That's the whole thing. The official one-liner is blank. She said "figure it out bestie" ๐
iykyk
โจ SYNOPSIS โจ
#include <qwt_plot_svgitem.h>
She inherits QwtPlotItem, so she's fully part of the plot-item family, got the genes, the whole vibe ๐งฌโจ
๐ธ 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 โญ
Not listed out here, but bestie, she's got them โ everything QwtPlotItem brings to the table comes along for the ride ๐ซถ
๐ Detailed Description ๐
Okay so picture this: a plot item whose whole personality is displaying data in Scalable Vector Graphics (SVG) format. That's the girl. That's the whole girl. ๐จ
And SVG images are often used to display maps. Yes, maps!! Cartography slay ๐บ๏ธโจ
๐ Constructor & Destructor Documentation ๐
๐ QwtPlotSvgItem::QwtPlotSvgItem (const QString &title = QString::null)
[explicit]
Constructor time, bestie! She sets these item attributes right out the gate, no cap:
QwtPlotItem::AutoScale:trueQwtPlotItem::Legend:false
Parameters:
- title โ Title
๐ QwtPlotSvgItem::QwtPlotSvgItem (const QwtText &title)
[explicit]
Another constructor! Same energy, different signature. She also sets:
QwtPlotItem::AutoScale:trueQwtPlotItem::Legend:false
Parameters:
- title โ Title
๐ง Member Function Documentation ๐ง
๐ void QwtPlotSvgItem::draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &canvasRect) const
[virtual]
Draw the SVG item. That's her moment, her main character era ๐ฅ
Parameters:
- painter โ Painter
- 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. Feed her the bytes, she'll eat ๐
Parameters:
- rect โ Bounding rectangle
- data โ in SVG format
Returns:
true, if the SVG data could be loaded
๐ bool QwtPlotSvgItem::loadFile (const QwtDoubleRect &rect, const QString &fileName)
Load a SVG file. From disk, from a path, from your heart ๐
Parameters:
- rect โ Bounding rectangle
- fileName โ SVG file name
Returns:
true, if the SVG file could be loaded
๐ void QwtPlotSvgItem::render (QPainter *painter, const QwtDoubleRect &viewBox, const QRect &rect) const
[protected]
Render the SVG data. Protected, so this one's for the subclasses and the inner circle only ๐คซ
Parameters:
- painter โ Painter
- viewBox โ View Box, see
QSvgRenderer::viewBox - rect โ Traget rectangle on the paint device
๐ int QwtPlotSvgItem::rtti () const
[virtual]
Returns:
QwtPlotItem::Rtti_PlotSVG
Reimplemented from QwtPlotItem.
๐ QwtDoubleRect QwtPlotSvgItem::viewBox (const QwtDoubleRect &rect) const
[protected]
Calculate the viewBox from an rect and boundingRect(). Math girlies rise ๐งฎโจ
Parameters:
- rect โ Rectangle in scale coordinates
Returns:
- viewBox โ View Box, see
QSvgRenderer::viewBox
๐ Author ๐
Generated automatically by Doxygen for Qwt User's Guide from the source code. The robot wrote it, I just gave it a makeover ๐ ๐ค
Version 5.2.3 โ Tue Nov 20 2012
And that's the whole page, bestie!! Version 5.2.3, dated Tue Nov 20 2012, straight out of the Qwt User's Guide ๐ฆ You read the entire thing, which is honestly iconic of you. Go load an SVG about it. Periodt ๐โจ
๐ฆ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 ยท LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 ยท LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 ยท LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 ยท LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 ยท LGPL-2.1-or-later WITH Qwt-exception-1.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms