QwtCPointerData - Data class containing two pointers to memory blocks of doubles.
Contents
Constructor & Destructor Documentation
QwtCPointerData::QwtCPointerData(constdouble*x,constdouble*y,size_tsize)
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.
Seealso:QwtPlotCurve::setData(), QwtPlotCurve::setRawSamples()Detailed Description
Data class containing two pointers to memory blocks of doubles.
Member Function Documentation
QRectFQwtCPointerData::boundingRect()const[virtual]
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>.
QPointFQwtCPointerData::sample(size_tindex)const[virtual]
Return the sample at position i
Parameters:index Index
Returns:
Sample at position i
Implements QwtSeriesData<QPointF>.
size_tQwtCPointerData::size()const[virtual]Returns:
Size of the data set
Implements QwtSeriesData<QPointF>.
constdouble*QwtCPointerData::xData()constReturns:
Array of the x-values
constdouble*QwtCPointerData::yData()constReturns:
Array of the y-values
Name
QwtCPointerData - Data class containing two pointers to memory blocks of doubles.
Synopsis
#include <qwt_point_data.h>
Inherits QwtSeriesData<QPointF>.
PublicMemberFunctionsQwtCPointerData (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 double * xData () const
const double * yData () const
AdditionalInheritedMembers