23 const QVector<double> &x,
const QVector<double> &y ):
38 const double *y,
size_t size )
41 ::memcpy(
d_x.data(), x, size *
sizeof( double ) );
44 ::memcpy(
d_y.data(), y, size *
sizeof( double ) );
66 return qMin(
d_x.size(),
d_y.size() );
77 return QPointF(
d_x[
int( index )],
d_y[
int( index )] );
106 const double *x,
const double *y,
size_t size ):
143 return QPointF(
d_x[
int( index )],
d_y[
int( index )] );
169 d_interval( interval )
256 return QRectF( 1.0, 1.0, -2.0, -2.0 );
274 return QPointF( 0, 0 );
276 const double xValue =
x( index );
277 const double yValue =
y( xValue );
279 return QPointF( xValue, yValue );
305 const double dx = interval.
width() / (
d_size - 1 );
306 return interval.
minValue() + index * dx;
virtual size_t size() const
QwtInterval normalized() const
Normalize the limits of the interval.
virtual double x(uint index) const
QRectF d_boundingRect
Can be used to cache a calculated bounding rectangle.
A class representing an interval.
virtual QPointF sample(size_t i) const
const QVector< double > & xData() const
virtual QPointF sample(size_t i) const
QwtInterval d_intervalOfInterest
const double * yData() const
QwtCPointerData(const double *x, const double *y, size_t size)
QwtPointArrayData(const QVector< double > &x, const QVector< double > &y)
void setInterval(const QwtInterval &)
QwtSyntheticPointData(size_t size, const QwtInterval &=QwtInterval())
virtual size_t size() const
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
TFSIMD_FORCE_INLINE Vector3 normalized() const
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
virtual size_t size() const
static QRectF qwtBoundingRect(const QPointF &sample)
void setSize(size_t size)
virtual void setRectOfInterest(const QRectF &)
virtual QPointF sample(size_t i) const
const QVector< double > & yData() const
QRectF rectOfInterest() const
double width() const
Return the width of an interval.
virtual QRectF boundingRect() const
Calculate the bounding rectangle.
virtual double y(double x) const =0
const double * xData() const
QwtInterval interval() const