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.
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.