logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtPlotSvgItem - A plot item, which displays data in Scalable Vector Graphics (SVG) format.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                QwtPlotSvgItem(3)

Constructor & Destructor Documentation

QwtPlotSvgItem::QwtPlotSvgItem(constQString&title=QString())[explicit]
       Constructor. Sets the following item attributes:

       • QwtPlotItem::AutoScale: true

       • QwtPlotItem::Legend: false

       Parameters:title Title

   QwtPlotSvgItem::QwtPlotSvgItem(constQwtText&title)[explicit]
       Constructor. Sets the following item attributes:

       • QwtPlotItem::AutoScale: true

       • QwtPlotItem::Legend: false

       Parameters:title Title

Detailed Description

       A plot item, which displays data in Scalable Vector Graphics (SVG) format.

       SVG images are often used to display maps

Member Function Documentation

voidQwtPlotSvgItem::draw(QPainter*painter,constQwtScaleMap&xMap,constQwtScaleMap&yMap,constQRectF&canvasRect)const[virtual]
       Draw the SVG item

       Parameters:painter Painter
           xMap X-Scale Map
           yMap Y-Scale Map
           canvasRect Contents rect of the plot canvas

       Implements QwtPlotItem.

   boolQwtPlotSvgItem::loadData(constQRectF&rect,constQByteArray&data)
       Load SVG data

       Parameters:rect Bounding rectangle
           data in SVG format

       Returns:
           true, if the SVG data could be loaded

   boolQwtPlotSvgItem::loadFile(constQRectF&rect,constQString&fileName)
       Load a SVG file

       Parameters:rect Bounding rectangle
           fileName SVG file name

       Returns:
           true, if the SVG file could be loaded

   voidQwtPlotSvgItem::render(QPainter*painter,constQRectF&viewBox,constQRectF&rect)const[protected]
       Render the SVG data

       Parameters:painter Painter
           viewBox View Box, see QSvgRenderer::viewBox()
           rect Target rectangle on the paint device

   constQSvgRenderer&QwtPlotSvgItem::renderer()const[protected]Returns:
           Renderer used to render the SVG data

   QSvgRenderer&QwtPlotSvgItem::renderer()[protected]Returns:
           Renderer used to render the SVG data

   intQwtPlotSvgItem::rtti()const[virtual]Returns:QwtPlotItem::Rtti_PlotSVG

       Reimplemented from QwtPlotItem.

   QRectFQwtPlotSvgItem::viewBox(constQRectF&rect)const[protected]
       Calculate the view box from rect and boundingRect().

       Parameters:rect Rectangle in scale coordinates

       Returns:
           View box, see QSvgRenderer::viewBox()

Name

       QwtPlotSvgItem - A plot item, which displays data in Scalable Vector Graphics (SVG) format.

Synopsis

       #include <qwt_plot_svgitem.h>

       Inherits QwtPlotItem.

   PublicMemberFunctionsQwtPlotSvgItem (const QString &title=QString())
           Constructor.
       QwtPlotSvgItem (const QwtText &title)
           Constructor.
       virtual ~QwtPlotSvgItem ()
           Destructor.
       bool loadFile (const QRectF &, const QString &fileName)
       bool loadData (const QRectF &, const QByteArray &)
       virtual QRectF boundingRect () const
           Bounding rectangle of the item.
       virtual void draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF
           &canvasRect) const
       virtual int rtti () const

   ProtectedMemberFunctions
       const QSvgRenderer & renderer () const
       QSvgRenderer & renderer ()
       void render (QPainter *, const QRectF &viewBox, const QRectF &rect) const
       QRectF viewBox (const QRectF &rect) const

   AdditionalInheritedMembers

See Also