DOKK / manpages / debian 10 / libqwt5-doc / QwtCPointerData.3.en
QwtCPointerData(3) Qwt User's Guide QwtCPointerData(3)

QwtCPointerData -

#include <qwt_data.h>

Inherits QwtData.


QwtCPointerData (const double *x, const double *y, size_t size)
virtual QwtDoubleRect boundingRect () const
virtual QwtData * copy () const
QwtCPointerData & operator= (const QwtCPointerData &)
virtual size_t size () const
virtual double x (size_t i) const
const double * xData () const
virtual double y (size_t i) const
const double * yData () const

Data class containing two pointers to memory blocks of doubles.

Constructor

Parameters:

x Array of x values
y Array of y values
size Size of the x and y arrays

Warning:

The programmer must assure that the memory blocks referenced by the pointers remain valid during the lifetime of the QwtPlotCPointer object.

See also:

QwtPlotCurve::setData(), QwtPlotCurve::setRawData()

Returns the bounding rectangle of the data. If there is no bounding rect, like for empty data the rectangle is invalid: QwtDoubleRect::isValid() == false

Reimplemented from QwtData.

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

Returns:

Pointer to a copy (virtual copy constructor)

Implements QwtData.

Returns:

Size of the data set

Implements QwtData.

Return the x value of data point i

Parameters:

i Index

Returns:

x X value of data point i

Implements QwtData.

Returns:

Array of the x-values

Return the y value of data point i

Parameters:

i Index

Returns:

y Y value of data point i

Implements QwtData.

Returns:

Array of the y-values

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

Tue Nov 20 2012 Version 5.2.3