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 thetitledefaults toQString().QwtPlotSeriesItem (const QwtText &title)β constructor with aQwtTexttitle.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 theQwtPlotItem, periodt.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 the attached plot.void setTitle (const QString &title)void setTitle (const QwtText &title)const QwtText & title () constvirtual int rtti () 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β returnxAxis.void setYAxis (QwtAxisId)QwtAxisId yAxis () constβ returnyAxis.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 &)=0virtual QRectF dataRect () const =0virtual 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 > ItemAttributestypedef QFlags< ItemInterest > ItemIntereststypedef 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 fileqwt_plot_seriesitem.cpp.QwtPlotSeriesItem::QwtPlotSeriesItem (const QwtText & title)[explicit]β constructor. Parameter:titleβ title of the curve. Definition at line 29 of fileqwt_plot_seriesitem.cpp.QwtPlotSeriesItem::~QwtPlotSeriesItem ()[virtual]β destructor. Definition at line 48 of fileqwt_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.0is ignored by the autoscaler β literally, the autoscaler does not care about it. - Reimplemented from
QwtPlotItem. - Reimplemented in
QwtPlotBarChart,QwtPlotHistogram,QwtPlotIntervalCurve,QwtPlotMultiBarChart,QwtPlotTradingCurve, andQwtPlotVectorField. - 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. Ifto < 0the curve will be painted to its last point.- Implemented in
QwtPlotBarChart,QwtPlotCurve,QwtPlotHistogram,QwtPlotIntervalCurve,QwtPlotMultiBarChart,QwtPlotSpectroCurve,QwtPlotTradingCurve, andQwtPlotVectorField.
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. aQwtPlotCurveuses it to identify how to display the curve inQwtPlotCurve::StepsorQwtPlotCurve::Sticksstyle. - 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
- 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