QWTVALUEPOINTDATA(3)
πΈ NAME πΈ
Hey bestie! This is the QwtValuePointData< T >(3) page from the Library Functions Manual, and the headline is simple: QwtValuePointData< T > is the interface for iterating over a QVector<T>. That's it. That's the vibe. π
β¨ SYNOPSIS β¨
#include <qwt_point_data.h>
It inherits from QwtSeriesData< QPointF >, so it's giving I am a series data icon. π
π Public Member Functions
QwtValuePointData (const QVector< T > &y)β constructor from a vector of y values, vector edition.QwtValuePointData (const T *y, size_t size)β constructor from a raw y pointer plus a size.virtual size_t size () const overrideβ the size override.virtual QPointF sample (size_t index) const overrideβ the sample override.const QVector< T > & yData () constβ hands you the y-data vector.
π«Ά Public Member Functions inherited from QwtSeriesData< QPointF >
QwtSeriesData ()β Constructor.virtual ~QwtSeriesData ()β Destructor.QPointF firstSample () constQPointF lastSample () constvirtual QRectF boundingRect () constvirtual void setRectOfInterest (const QRectF &rect)
π Additional Inherited Members
Protected Attributes inherited from QwtSeriesData< QPointF >
QRectF cachedBoundingRectβ can be used to cache a calculated bounding rectangle.
π Detailed Description π
The template declaration in the docs looks like this, exactly:
template<typename T>
class QwtValuePointData< T >"Interface for iterating over a QVector<T>.
The memory contains the y coordinates, while the index is interpreted as x coordinate. So your y-values get the main-character treatment, and the index is lowkey the x-axis. π¦
Definition at line 67 of file qwt_point_data.h.
π§ Constructor & Destructor Documentation π§
π Constructor one: const QVector< T > & y
template<typename T> QwtValuePointData< T >::QwtValuePointData (const QVector< T > & y)
- Constructor
- Parameters:
yβ array of y values - See also:
QwtPlotCurve::setData(),QwtPlotCurve::setSamples() - Definition at line 266 of file
qwt_point_data.h.
π Constructor two: const T * y, size_t size
template<typename T> QwtValuePointData< T >::QwtValuePointData (const T * y, size_t size)
- Constructor
- Parameters:
yβ array of y valuessizeβ size of the x and y arrays
- See also:
QwtPlotCurve::setData(),QwtPlotCurve::setSamples() - Definition at line 279 of file
qwt_point_data.h.
π₯ Member Function Documentation π₯
π sample (size_t index) const
template<typename T> QPointF QwtValuePointData< T >::sample (size_t index) const [override], [virtual]
- Return the sample at position
i - Parameters:
indexβ Index - Returns: Sample at position
i - Implements
QwtSeriesData< QPointF >. - Definition at line 299 of file
qwt_point_data.h.
π size () const
template<typename T> size_t QwtValuePointData< T >::size () const [override], [virtual]
- Returns: Size of the data set
- Implements
QwtSeriesData< QPointF >. - Definition at line 287 of file
qwt_point_data.h.
π yData () const
template<typename T> const QVector< T > & QwtValuePointData< T >::yData () const
- Returns: Array of the y-values
- Definition at line 306 of file
qwt_point_data.h.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Okay bestie, that's the whole page β sourced from the Qwt User's Guide and signed off by QwtValuePointData< T >(3). Slay, iterate, and hydrate. π
β¨π«Ά
π¦ 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