QwtData(3)
π QwtData β from the Qwt User's Guide, bestie edition π
okay so like. this is QwtData(3), part of the Qwt User's Guide, and honestly? it's giving β¨blueprint energyβ¨. it's the interface, the vibe, the blueprint β not the actual data itself. let's get into it π«Ά
πΈ NAME πΈ
QwtData β no extra words needed, she speaks for herself π
β¨ SYNOPSIS β¨
#include <qwt_data.h>
Inherited by QwtArrayData, QwtCPointerData, and QwtPolygonFData.
so yeah, those three are her daughters and they all carry the family name π
π¦ Public Member Functions π¦
QwtData ()β the constructor, she's here, she's simple, she's readyvirtual ~QwtData ()β the destructor, virtual bc we do polymorphism in this housevirtual QwtDoubleRect boundingRect () constβ hands you the bounding rectangle of the datavirtual QwtData * copy () const =0β pure virtual, returns a pointer to a copy (virtual copy constructor vibes) β you gotta implement thisvirtual size_t size () const =0β pure virtual, returns the size of the data set β also mandatory bestievirtual double x (size_t i) const =0β pure virtual, the x value of data point ivirtual double y (size_t i) const =0β pure virtual, the y value of data point i
π Protected Member Functions π
QwtData & operator= (const QwtData &)β assignment operator, but make it virtualized π
π Detailed Description π
so QwtData defines an interface to any type of curve data. literally any. she's flexible like that π
classes that derive from QwtData may:
- store the data in almost any type of container π¦
- calculate the data on the fly instead of storing it π§ (main character energy honestly)
π₯ Member Function Documentation π₯
QwtDoubleRect QwtData::boundingRect () const [virtual]
returns the bounding rectangle of the data. if there's no bounding rect β like, say, for empty data β the rectangle is invalid:
QwtDoubleRect::isValid() == false
β οΈ warning bestie, listen up: this is a slow implementation that iterates over all the points. it's intended to be overloaded by derived classes. and in case of auto scaling,boundingRect()gets called for every replot, so it might genuinely be worth it to implement a cache, or usex(0),x(size() - 1)for ordered data ... π
Reimplemented in</purage> QwtCPointerData, and QwtArrayData.
virtual QwtData* QwtData::copy () const [pure virtual]
Returns: pointer to a copy (virtual copy constructor) π«Ά
Implemented in QwtCPointerData, QwtArrayData, and QwtPolygonFData.
QwtData& QwtData::operator= (const QwtData &) [protected]
assignment operator (virtualized) β¨ short and iconic, no notes.
virtual size_t QwtData::size () const [pure virtual]
Returns: size of the data set π
Implemented in QwtCPointerData, QwtArrayData, and QwtPolygonFData.
virtual double QwtData::x (size_t i) const [pure virtual]
return the x value of data point i
Parameters:
- i β index
Returns:
- x β x value of data point i
Implemented in QwtCPointerData, QwtArrayData, and QwtPolygonFData.
virtual double QwtData::y (size_t i) const [pure virtual]
return the y value of data point i
Parameters:
- i β index
Returns:
- y β y value of data point i
Implemented in QwtCPointerData, QwtArrayData, and QwtPolygonFData.
π Author π
generated automatically by Doxygen for Qwt User's Guide from the source code. no human author, just robot slay π€π
and that's the whole page, bestie!! πβ¨πΈπ¦π«Ά
this was Version 5.2.3, dated Tue Nov 20 2012 β yeah she's a little vintage but vintage is literally iconic, periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms