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 a size.
  • 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