QwtPlotGraphicItem(3) Qwt User's Guide QwtPlotGraphicItem(3)

QwtPlotGraphicItem - A plot item, which displays a recorded sequence of QPainter commands.

#include <qwt_plot_graphicitem.h>

Inherits QwtPlotItem.

Inherited by QwtPlotSvgItem.


QwtPlotGraphicItem (const QString &title=QString())
Constructor. QwtPlotGraphicItem (const QwtText &title)
Constructor. virtual ~QwtPlotGraphicItem ()
Destructor. void setGraphic (const QRectF &rect, const QwtGraphic &)
QwtGraphic graphic () const
virtual QRectF boundingRect () const override
Bounding rectangle of the item. virtual void draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const override
virtual int rtti () const override

A plot item, which displays a recorded sequence of QPainter commands.

QwtPlotGraphicItem renders a sequence of recorded painter commands into a specific plot area. Recording of painter commands can be done manually by QPainter or e.g. QSvgRenderer.

See also

QwtPlotShapeItem, QwtPlotSvgItem

Definition at line 29 of file qwt_plot_graphicitem.h.

Constructor. Sets the following item attributes:

  • QwtPlotItem::AutoScale: true
  • QwtPlotItem::Legend: false

Parameters

title Title

Definition at line 32 of file qwt_plot_graphicitem.cpp.

Constructor. Sets the following item attributes:

  • QwtPlotItem::AutoScale: true
  • QwtPlotItem::Legend: false

Parameters

title Title

Definition at line 47 of file qwt_plot_graphicitem.cpp.

Draw the item

Parameters

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

Implements QwtPlotItem.

Definition at line 115 of file qwt_plot_graphicitem.cpp.

QwtGraphic QwtPlotGraphicItem::graphic () const

Returns

Recorded sequence of painter commands

See also

setGraphic()

Definition at line 96 of file qwt_plot_graphicitem.cpp.

Returns

QwtPlotItem::Rtti_PlotGraphic

Reimplemented from QwtPlotItem.

Definition at line 71 of file qwt_plot_graphicitem.cpp.

Set the graphic to be displayed

Parameters

rect Rectangle in plot coordinates
graphic Recorded sequence of painter commands

Definition at line 82 of file qwt_plot_graphicitem.cpp.

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

Sun Jul 18 2021 Version 6.2.0