QWTVALUEPOINTDATA(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

🌸 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 () const
  • QPointF lastSample () const
  • virtual QRectF boundingRect () const
  • virtual 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 values
    • size β€” 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