10 #ifndef QWT_POINT_DATA_H 11 #define QWT_POINT_DATA_H 51 const T *
xData()
const;
52 const T *
yData()
const;
97 const T *
yData()
const;
163 void setSize(
size_t size );
178 virtual double y(
double x )
const = 0;
179 virtual double x( uint index )
const;
182 QRectF rectOfInterest()
const;
199 template <
typename T>
215 template <
typename T>
217 const T *x,
const T *y,
size_t size )
220 std::memcpy(
d_x.data(), x, size *
sizeof( T ) );
223 std::memcpy(
d_y.data(), y, size *
sizeof( T ) );
227 template <
typename T>
230 return qMin(
d_x.size(),
d_y.size() );
239 template <
typename T>
242 return QPointF(
d_x[
int( index )],
d_y[
int( index )] );
246 template <
typename T>
253 template <
typename T>
266 template <
typename T>
280 template <
typename T>
284 std::memcpy(
d_y.data(), y, size *
sizeof( T ) );
288 template <
typename T>
300 template <
typename T>
303 return QPointF( index,
d_y[
int( index )] );
307 template <
typename T>
327 template <
typename T>
336 template <
typename T>
348 template <
typename T>
351 return QPointF(
d_x[
int( index )],
d_y[
int( index )] );
355 template <
typename T>
362 template <
typename T>
381 template <
typename T>
389 template <
typename T>
401 template <
typename T>
404 return QPointF( index,
d_y[
int( index ) ] );
408 template <
typename T>
virtual size_t size() const QWT_OVERRIDE
virtual void setRectOfInterest(const QRectF &rect)
A class representing an interval.
Interface for iterating over a QVector<T>.
virtual QRectF boundingRect() const QWT_OVERRIDE
Calculate the bounding rectangle.
QwtPointArrayData(const QVector< T > &x, const QVector< T > &y)
QwtInterval d_intervalOfInterest
const QVector< T > & xData() const
virtual QPointF sample(size_t index) const QWT_OVERRIDE
QwtCPointerData(const T *x, const T *y, size_t size)
Data class containing two pointers to memory blocks of T.
const QVector< T > & yData() const
Data class containing a pointer to memory of y coordinates.
virtual size_t size() const QWT_OVERRIDE
virtual QPointF sample(size_t index) const QWT_OVERRIDE
const QVector< T > & yData() const
virtual QPointF sample(size_t index) const QWT_OVERRIDE
virtual QPointF sample(size_t index) const QWT_OVERRIDE
QwtValuePointData(const QVector< T > &y)
Interface for iterating over two QVector<T> objects.
Interface for iterating over an array of points.
virtual size_t size() const QWT_OVERRIDE
QwtCPointerValueData(const T *y, size_t size)
virtual size_t size() const QWT_OVERRIDE