QwtPlotSvgItem(3)

๐Ÿ“ฆ version 5.2.3a, in epel 9, fedora 43, fedora 44

๐ŸŽ€ 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: true
  • QwtPlotItem::Legend: false

Parameters:

  • title โ€” Title

๐ŸŒŸ QwtPlotSvgItem::QwtPlotSvgItem (const QwtText &title)

[explicit]

Another constructor! Same energy, different signature. She also sets:

  • QwtPlotItem::AutoScale: true
  • QwtPlotItem::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