QwtArrayData(3)

πŸ“¦
version 5.2.3_qt5+git20181129.2819734 Β· 2 versions
, in opensuse-leap 16.0

✨ NAME ✨

QwtArrayData β€” okay so this is the name, and that's literally all the original NAME line gives us (the little description slot was left blank, no cap, so I'm not gonna make anything up πŸ’…). It comes to you from the Qwt User's Guide, bestie. 🫢


🌸 SYNOPSIS 🌸

#include <qwt_data.h>

Inherits QwtData.

πŸ’– Public Member Functions

  • QwtArrayData(const QwtArray<double> &x, const QwtArray<double> &y)
  • QwtArrayData(const double *x, const double *y, size_t size)
  • virtual QwtDoubleRect boundingRect() const
  • virtual QwtData * copy() const
  • QwtArrayData & operator=(const QwtArrayData &)
  • virtual size_t size() const
  • virtual double x(size_t i) const
  • const QwtArray<double> & xData() const
  • virtual double y(size_t i) const
  • const QwtArray<double> & yData() const

🧚 Additional Inherited Members

Yeah so there's a whole Additional Inherited Members section on this page too β€” it's the stuff it gets handed down from QwtData, and the page keeps the deets over there. Not me being mysterious, that's just how the original rolls. πŸ™ˆ


πŸ¦‹ DESCRIPTION πŸ¦‹

Detailed Description: it's a data class containing two QwtArray<double> objects. That's it. That's the whole vibe. Two arrays, x and y, bestie-fied into one little container. Iconic. ✨


πŸŽ€ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION πŸŽ€

QwtArrayData::QwtArrayData(const QwtArray<double> &x, const QwtArray<double> &y)

Constructor, babes. It builds the thing.

Parameters:

  • x β€” array of x values
  • y β€” array of y values

See also: QwtPlotCurve::setData()

QwtArrayData::QwtArrayData(const double *x, const double *y, size_t size)

Constructor again, but this time you're passing raw pointers like a main character. 😌

Parameters:

  • x β€” array of x values
  • y β€” array of y values
  • size β€” size of the x and y arrays

See also: QwtPlotCurve::setData()


πŸ‘‘ MEMBER FUNCTION DOCUMENTATION πŸ‘‘

QwtDoubleRect QwtArrayData::boundingRect() const [virtual]

Gives you back the bounding rectangle of the data. But here's the tea 🍡 β€” if there is no bounding rect, like when the data is empty, then the rectangle is invalid, as in:

QwtDoubleRect::isValid() == false

So don't come crying to me when isValid() says false on empty data, that's just the rules. πŸ’€

Reimplemented from QwtData.

QwtData * QwtArrayData::copy() const [virtual]

Returns: a pointer to a copy β€” it's a virtual copy constructor, lowkey the classic move.

Implements QwtData.

size_t QwtArrayData::size() const [virtual]

Returns: the size of the data set.

Implements QwtData.

double QwtArrayData::x(size_t i) const [virtual]

Returns the x value of data point i. Simple. Slay.

Parameters:

  • i β€” index

Returns: x β€” x value of data point i

Implements QwtData.

const QwtArray<double> & QwtArrayData::xData() const

Returns: the array of the x-values. Handing you the whole thing, no crumbs. πŸ“

double QwtArrayData::y(size_t i) const [virtual]

Returns the y value of data point i. Same energy, different axis.

Parameters:

  • i β€” index

Returns: y β€” y value of data point i

Implements QwtData.

const QwtArray<double> & QwtArrayData::yData() const

Returns: the array of the y-values. Matching set, obviously. πŸ’œ


🌈 AUTHOR 🌈

Generated automatically by Doxygen for the Qwt User's Guide, straight from the source code. Not a human author, just a robot doing its little robot thing and honestly? It ate. πŸ€–βœ¨


Version 5.2.3, dated Tue Nov 20 2012 β€” that's the footer, bestie, and this whole page was literally QwtArrayData(3). Byeee, go plot something gorgeous πŸŽ€πŸ’–πŸ¦‹