QwtPointArrayData(3) Qwt User's Guide QwtPointArrayData(3)

QwtPointArrayData - Interface for iterating over two QVector<double> objects.

#include <qwt_point_data.h>

Inherits QwtSeriesData< QPointF >.


QwtPointArrayData (const QVector< double > &x, const QVector< double > &y)
QwtPointArrayData (const double *x, const double *y, size_t size)
virtual QRectF boundingRect () const
Calculate the bounding rectangle. virtual size_t size () const
virtual QPointF sample (size_t index) const
const QVector< double > & xData () const
const QVector< double > & yData () const

Interface for iterating over two QVector<double> objects.

Constructor

Parameters:

x Array of x values
y Array of y values

See also:

QwtPlotCurve::setData(), QwtPlotCurve::setSamples()

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()

Calculate the bounding rectangle. The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.

Returns:

Bounding rectangle

Implements QwtSeriesData< QPointF >.

Return the sample at position i

Parameters:

index Index

Returns:

Sample at position i

Implements QwtSeriesData< QPointF >.

Returns:

Size of the data set

Implements QwtSeriesData< QPointF >.

Returns:

Array of the x-values

Returns:

Array of the y-values

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Wed Jan 2 2019 Version 6.1.4