QwtPlotGraphicItem(3)
QwtPlotGraphicItem(3) π
Hey bestie, welcome to the Library Functions Manual page for QwtPlotGraphicItem β the plot item that literally plays back a recorded sequence of QPainter commands. β¨
β¨ NAME β¨
QwtPlotGraphicItem β a plot item that displays a recorded sequence of QPainter commands. π
π SYNOPSIS π
#include <qwt_plot_graphicitem.h>
Inherits QwtPlotItem.
Inherited by QwtPlotSvgItem.
π Public Member Functions
QwtPlotGraphicItem (const QString &title=QString())β Constructor. π«ΆQwtPlotGraphicItem (const QwtText &title)β Constructor. πvirtual ~QwtPlotGraphicItem ()β Destructor. πΈvoid setGraphic (const QRectF &rect, const QwtGraphic &)β setter for the graphic. β¨QwtGraphic graphic () constβ getter for the graphic. π¦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β draw function; details are down below. π¨virtual int rtti () const overrideβ runtime type info getter; details are down below. π₯
π«Ά Public Member Functions inherited from QwtPlotItem
QwtPlotItem ()QwtPlotItem (const QString &title)QwtPlotItem (const QwtText &title)virtual ~QwtPlotItem ()β Destroy theQwtPlotItem. πvoid attach (QwtPlot *plot)β Attach the item to a plot. πvoid detach ()β This method detaches aQwtPlotItemfrom anyQwtPlotit has been associated with. βοΈQwtPlot * plot () constβ Return attached plot.void setTitle (const QString &title)void setTitle (const QwtText &title)const QwtText & title () constvoid setItemAttribute (ItemAttribute, bool on=true)bool testItemAttribute (ItemAttribute) constvoid setItemInterest (ItemInterest, bool on=true)bool testItemInterest (ItemInterest) constvoid setRenderHint (RenderHint, bool on=true)bool testRenderHint (RenderHint) constvoid setRenderThreadCount (uint numThreads)uint renderThreadCount () constvoid setLegendIconSize (const QSize &)QSize legendIconSize () constdouble z () constvoid setZ (double z)β Set the z value. πvoid show ()β Show the item. πvoid hide ()β Hide the item. πvirtual void setVisible (bool)bool isVisible () constvoid setAxes (QwtAxisId xAxis, QwtAxisId yAxis)void setXAxis (QwtAxisId)QwtAxisId xAxis () constβ Return xAxis.void setYAxis (QwtAxisId)QwtAxisId yAxis () constβ Return yAxis.virtual void itemChanged ()virtual void legendChanged ()virtual void getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) constβ Calculate a hint for the canvas margin. πvirtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &)β Update the item to changes of the axes scale division.virtual void updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &)β Update the item to changes of the legend info.QRectF scaleRect (const QwtScaleMap &, const QwtScaleMap &) constβ Calculate the bounding scale rectangle of 2 maps.QRectF paintRect (const QwtScaleMap &, const QwtScaleMap &) constβ Calculate the bounding paint rectangle of 2 maps.virtual QList< QwtLegendData > legendData () constβ Return all information, that is needed to represent the item on the legend.virtual QwtGraphic legendIcon (int index, const QSizeF &) const
π Additional Inherited Members
β Public Types inherited from QwtPlotItem
enum RttiValues { Rtti_PlotItem = 0, Rtti_PlotGrid, Rtti_PlotScale,
Rtti_PlotLegend, Rtti_PlotMarker, Rtti_PlotCurve,
Rtti_PlotSpectroCurve, Rtti_PlotIntervalCurve, Rtti_PlotHistogram,
Rtti_PlotSpectrogram, Rtti_PlotGraphic, Rtti_PlotTradingCurve,
Rtti_PlotBarChart, Rtti_PlotMultiBarChart, Rtti_PlotShape,
Rtti_PlotTextLabel, Rtti_PlotZone, Rtti_PlotVectorField,
Rtti_PlotUserItem = 1000 }
Runtime type information. π§
enum ItemAttribute { Legend = 0x01, AutoScale = 0x02, Margins = 0x04 }β Plot Item Attributes. π·οΈenum ItemInterest { ScaleInterest = 0x01, LegendInterest = 0x02 }β Plot Item Interests. π«enum RenderHint { RenderAntialiased = 0x1 }β Render hints. π¨typedef QFlags< ItemAttribute > ItemAttributestypedef QFlags< ItemInterest > ItemIntereststypedef QFlags< RenderHint > RenderHints
π§ Protected Member Functions inherited from QwtPlotItem
QwtGraphic defaultIcon (const QBrush &, const QSizeF &) constβ Return a default icon from a brush. ποΈ
πΈ Detailed Description πΈ
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 & Destructor Documentation π¬
QwtPlotGraphicItem::QwtPlotGraphicItem (const QString & title = QString()) [explicit]
Constructor. Sets the following item attributes:
QwtPlotItem::AutoScale: trueQwtPlotItem::Legend: false
Parameters
- title β Title
Definition at line 32 of file qwt_plot_graphicitem.cpp.
QwtPlotGraphicItem::QwtPlotGraphicItem (const QwtText & title) [explicit]
Constructor. Sets the following item attributes:
QwtPlotItem::AutoScale: trueQwtPlotItem::Legend: false
Parameters
- title β Title
Definition at line 47 of file qwt_plot_graphicitem.cpp.
QwtPlotGraphicItem::~QwtPlotGraphicItem () [virtual]
Destructor. π
Definition at line 54 of file qwt_plot_graphicitem.cpp.
π₯ Member Function Documentation π₯
QRectF QwtPlotGraphicItem::boundingRect () const [override], [virtual]
Bounding rectangle of the item. π
Reimplemented from QwtPlotItem.
Definition at line 102 of file qwt_plot_graphicitem.cpp.
void QwtPlotGraphicItem::draw (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect) const [override], [virtual]
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.
int QwtPlotGraphicItem::rtti () const [override], [virtual]
Returns
QwtPlotItem::Rtti_PlotGraphic
Reimplemented from QwtPlotItem.
Definition at line 71 of file qwt_plot_graphicitem.cpp.
void QwtPlotGraphicItem::setGraphic (const QRectF & rect, const QwtGraphic & graphic)
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.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. π«Ά
β¨ Cute little footer sign-off, bestie: the source/version is Qwt User's Guide, the page tag is QwtPlotGraphicItem(3), and no date is printed in that footer, so Iβm not inventing one β periodt. π π«Ά
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms