QwtPlotSeriesItem(3)

πŸ’… QwtPlotSeriesItem(3) β€” bestie edition

okay so this is the Library Functions Manual page for QwtPlotSeriesItem(3), and it is literally the base class for plot items representing a series of samples. No cap, we’re getting into it πŸŽ€

🌸 NAME

QwtPlotSeriesItem β€” base class for plot items representing a series of samples. That’s the whole name vibe, bestie.

✨ SYNOPSIS ✨

#include <qwt_plot_seriesitem.h>

Inherits QwtPlotItem, and QwtAbstractSeriesStore.

Inherited by QwtPlotAbstractBarChart, QwtPlotCurve, QwtPlotHistogram,
QwtPlotIntervalCurve, QwtPlotSpectroCurve, QwtPlotTradingCurve, and
QwtPlotVectorField.

🫢 Public Member Functions

  • QwtPlotSeriesItem (const QString &title=QString()) β€” constructor, and yes the title defaults to QString().
  • QwtPlotSeriesItem (const QwtText &title) β€” constructor with a QwtText title.
  • virtual ~QwtPlotSeriesItem () β€” destructor. Bye bestie πŸ’€
  • void setOrientation (Qt::Orientation) β€” sets the orientation.
  • Qt::Orientation orientation () const β€” gets the orientation.
  • virtual void draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const override β€” draw the complete series.
  • virtual void drawSeries (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0 β€” pure virtual, periodt.
  • virtual QRectF boundingRect () const override β€” bounding rect vibes.
  • virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) override β€” update the item to changes of the axes scale division.

πŸ’œ Public Member Functions inherited from QwtPlotItem

  • QwtPlotItem ()
  • QwtPlotItem (const QString &title)
  • QwtPlotItem (const QwtText &title)
  • virtual ~QwtPlotItem () β€” destroy the QwtPlotItem, periodt.
  • 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 the attached plot.
  • void setTitle (const QString &title)
  • void setTitle (const QwtText &title)
  • const QwtText & title () const
  • virtual int rtti () 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 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

🧚 Public Member Functions inherited from QwtAbstractSeriesStore

  • virtual ~QwtAbstractSeriesStore () β€” destructor.

πŸ”’ Protected Member Functions

  • virtual void dataChanged () override β€” dataChanged() indicates that the series has been changed.

πŸ”’ Protected Member Functions inherited from QwtPlotItem

  • QwtGraphic defaultIcon (const QBrush &, const QSizeF &) const β€” return a default icon from a brush.

πŸ”’ Protected Member Functions inherited from QwtAbstractSeriesStore

  • virtual void setRectOfInterest (const QRectF &)=0
  • virtual QRectF dataRect () const =0
  • virtual size_t dataSize () const =0

πŸŽ€ 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

πŸ’– Detailed Description

Base class for plot items representing a series of samples.

Definition at line 24 of file qwt_plot_seriesitem.h.

πŸ› οΈ Constructor & Destructor Documentation

  • QwtPlotSeriesItem::QwtPlotSeriesItem (const QString & title = QString()) [explicit] β€” constructor. Parameter: title β€” title of the curve. Definition at line 40 of file qwt_plot_seriesitem.cpp.
  • QwtPlotSeriesItem::QwtPlotSeriesItem (const QwtText & title) [explicit] β€” constructor. Parameter: title β€” title of the curve. Definition at line 29 of file qwt_plot_seriesitem.cpp.
  • QwtPlotSeriesItem::~QwtPlotSeriesItem () [virtual] β€” destructor. Definition at line 48 of file qwt_plot_seriesitem.cpp.

🌈 Member Function Documentation

QRectF QwtPlotSeriesItem::boundingRect () const [override], [virtual]

  • Returns an invalid bounding rect: QRectF(1.0, 1.0, -2.0, -2.0).
  • Note: a width or height < 0.0 is ignored by the autoscaler β€” literally, the autoscaler does not care about it.
  • Reimplemented from QwtPlotItem.
  • Reimplemented in QwtPlotBarChart, QwtPlotHistogram, QwtPlotIntervalCurve, QwtPlotMultiBarChart, QwtPlotTradingCurve, and QwtPlotVectorField.
  • Definition at line 97 of file qwt_plot_seriesitem.cpp.

void QwtPlotSeriesItem::dataChanged () [override], [protected], [virtual]

  • dataChanged() indicates that the series has been changed.
  • Implements QwtAbstractSeriesStore.
  • Reimplemented in QwtPlotVectorField.
  • Definition at line 112 of file qwt_plot_seriesitem.cpp.

void QwtPlotSeriesItem::draw (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect) const [override], [virtual]

Draw the complete series.

  • painter β€” painter.
  • xMap β€” maps x-values into pixel coordinates.
  • yMap β€” maps y-values into pixel coordinates.
  • canvasRect β€” contents rectangle of the canvas.
  • Implements QwtPlotItem.
  • Definition at line 90 of file qwt_plot_seriesitem.cpp.

virtual void QwtPlotSeriesItem::drawSeries (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect, int from, int to) const [pure virtual]

Draw a subset of the samples.

  • painter β€” painter.
  • xMap β€” maps x-values into pixel coordinates.
  • yMap β€” maps y-values into pixel coordinates.
  • canvasRect β€” contents rectangle of the canvas.
  • from β€” index of the first point to be painted.
  • to β€” index of the last point to be painted. If to < 0 the curve will be painted to its last point.
  • Implemented in QwtPlotBarChart, QwtPlotCurve, QwtPlotHistogram, QwtPlotIntervalCurve, QwtPlotMultiBarChart, QwtPlotSpectroCurve, QwtPlotTradingCurve, and QwtPlotVectorField.

Qt::Orientation QwtPlotSeriesItem::orientation () const

  • Returns the orientation of the plot item.
  • See also setOrientation().
  • Definition at line 77 of file qwt_plot_seriesitem.cpp.

void QwtPlotSeriesItem::setOrientation (Qt::Orientation orientation)

  • Set the orientation of the item.
  • The orientation() might be used in a specific way by a plot item. F.e. a QwtPlotCurve uses it to identify how to display the curve in QwtPlotCurve::Steps or QwtPlotCurve::Sticks style.
  • See also orientation().
  • Definition at line 62 of file qwt_plot_seriesitem.cpp.

void QwtPlotSeriesItem::updateScaleDiv (const QwtScaleDiv & xScaleDiv, const QwtScaleDiv & yScaleDiv) [override], [virtual]

Update the item to changes of the axes scale division. Update the item when the axes of plot have changed. The default implementation does nothing, but items that depend on the scale division (like QwtPlotGrid()) have to reimplement updateScaleDiv().

updateScaleDiv() is only called when the ScaleInterest interest is enabled. The default implementation does nothing.

  • xScaleDiv β€” scale division of the x-axis.
  • yScaleDiv β€” scale division of the y-axis.
  • See also QwtPlot::updateAxes(), ScaleInterest.
  • Reimplemented from QwtPlotItem.
  • Definition at line 102 of file qwt_plot_seriesitem.cpp.

πŸ‘‘ Author

Generated automatically by Doxygen for Qwt User’s Guide from the source code β€” automated and iconic, no cap.

That’s the whole page, bestie β€” straight from the Qwt User’s Guide, QwtPlotSeriesItem(3), with all the source/version vibes and no date in the footer to report πŸ’–βœ¨

πŸ“¦ where this page comes from