QWTPOINTARRAYDATA(3)
π¦ QwtPointArrayData< T >(3) β from the Library Functions Manual, but make it cute π¦
okay so bestie, welcome to the QwtPointArrayData< T >(3) page from the Library Functions Manual. It's a template class page, it's giving inherited-member energy, and we're gonna cover every single detail. No cap. π
πΈ NAME πΈ
QwtPointArrayData< T > β interface for iterating over two QVector<T> objects. That's the whole name-section vibe. β¨
π SYNOPSIS π
#include <qwt_point_data.h>
It inherits from QwtSeriesData< QPointF >. Yes bestie, that's its parent class, periodt. π
π Public Member Functions π
QwtPointArrayData (const QVector< T > &x, const QVector< T > &y)β constructor that takes an x vector and a y vector. The full constructor tea is down below. πQwtPointArrayData (const T *x, const T *y, size_t size)β constructor that takes raw x and y arrays plus asize.virtual size_t size () const overrideβ gives you the size of the data set.virtual QPointF sample (size_t index) const overrideβ gives you the sample at a given index.const QVector< T > & xData () constβ hands you the array of x-values.const QVector< T > & yData () constβ hands you the array of y-values.
π«Ά Public Member Functions inherited from QwtSeriesData< QPointF > π«Ά
QwtSeriesData ()β Constructor.virtual ~QwtSeriesData ()β Destructor.QPointF firstSample () constβ inherited member, signature only in the original.QPointF lastSample () constβ inherited member, signature only in the original.virtual QRectF boundingRect () constβ inherited member, signature only in the original.virtual void setRectOfInterest (const QRectF &rect)β inherited member, signature only in the original.
π§ Additional Inherited Members π§
- Protected Attributes inherited from
QwtSeriesData< QPointF >:QRectF cachedBoundingRectβ can be used to cache a calculated bounding rectangle.
π Detailed Description π
Here's the class in all its template glory. The detailed description is giving template<typename T> and class QwtPointArrayData< T >, and the text right after it says "Interface for iterating over two QVector<T> objects. β yes, with that li'l quote mark, bestie, we're preserving the detail energy. π
Definition at line 22 of file qwt_point_data.h.
π₯ Constructor & Destructor Documentation π₯
π Constructor #1 β from two vectors
template<typename T> QwtPointArrayData< T >::QwtPointArrayData (const
QVector< T > & x, const QVector< T > & y)
This is the constructor. Parameters:
xβ array of x values.yβ array of y values.
See also: QwtPlotCurve::setData(), QwtPlotCurve::setSamples().
Definition at line 200 of file qwt_point_data.h.
π
Constructor #2 β from raw pointers plus size
template<typename T> QwtPointArrayData< T >::QwtPointArrayData (const T * x,
const T * y, size_t size)
This is also a constructor. Parameters:
xβ array of x values.yβ array of y values.sizeβ size of the x and y arrays.
See also: QwtPlotCurve::setData(), QwtPlotCurve::setSamples().
Definition at line 216 of file qwt_point_data.h.
π¦ Member Function Documentation π¦
sample β the sample at position i
template<typename T> QPointF QwtPointArrayData< 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 239 of file qwt_point_data.h.
size β the size of the data set
template<typename T> size_t QwtPointArrayData< T >::size () const
[override], [virtual]
Returns: Size of the data set.
Implements QwtSeriesData< QPointF >.
Definition at line 227 of file qwt_point_data.h.
xData β the x-values, bestie
template<typename T> const QVector< T > & QwtPointArrayData< T >::xData ()
const
Returns: Array of the x-values.
Definition at line 246 of file qwt_point_data.h.
yData β the y-values, obviously
template<typename T> const QVector< T > & QwtPointArrayData< T >::yData ()
const
Returns: Array of the y-values.
Definition at line 253 of file qwt_point_data.h.
π Author π
This page was generated automatically by Doxygen for the Qwt User's Guide from the source code. That's the author section, periodt.
π final sign-off: this was QwtPointArrayData< T >(3) from the Qwt User's Guide β source/version tagline and all. The footer didn't print a date, so I'm not inventing one, bestie. slay and goodbye πβ¨
π¦ 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