QwtPlotGraphicItem(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

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 the QwtPlotItem. πŸ’€
  • void attach (QwtPlot *plot) β€” Attach the item to a plot. πŸ”—
  • void detach () β€” This method detaches a QwtPlotItem from any QwtPlot it has been associated with. βœ‚οΈ
  • QwtPlot * plot () const β€” Return attached plot.
  • void setTitle (const QString &title)
  • void setTitle (const QwtText &title)
  • const QwtText & title () const
  • void setItemAttribute (ItemAttribute, bool on=true)
  • bool testItemAttribute (ItemAttribute) const
  • void setItemInterest (ItemInterest, bool on=true)
  • bool testItemInterest (ItemInterest) const
  • void setRenderHint (RenderHint, bool on=true)
  • bool testRenderHint (RenderHint) const
  • void setRenderThreadCount (uint numThreads)
  • uint renderThreadCount () const
  • void setLegendIconSize (const QSize &)
  • QSize legendIconSize () const
  • double z () const
  • void setZ (double z) β€” Set the z value. πŸ‘‘
  • void show () β€” Show the item. 🌟
  • void hide () β€” Hide the item. πŸ™ˆ
  • virtual void setVisible (bool)
  • bool isVisible () const
  • void 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 > ItemAttributes
  • typedef QFlags< ItemInterest > ItemInterests
  • typedef 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: true
  • QwtPlotItem::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: true
  • QwtPlotItem::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