10 #ifndef QWT_POINT_DATA_H 11 #define QWT_POINT_DATA_H 21 template<
typename T >
42 template<
typename T >
51 const T*
xData()
const;
52 const T*
yData()
const;
66 template<
typename T >
88 template<
typename T >
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 >
219 std::memcpy(
m_x.data(),
x, size *
sizeof( T ) );
222 std::memcpy(
m_y.data(),
y, size *
sizeof( T ) );
226 template<
typename T >
229 return qMin(
m_x.size(),
m_y.size() );
238 template<
typename T >
241 return QPointF(
m_x[
int( index )],
m_y[
int( index )] );
245 template<
typename T >
252 template<
typename T >
265 template<
typename T >
278 template<
typename T >
282 std::memcpy(
m_y.data(),
y, size *
sizeof( T ) );
286 template<
typename T >
298 template<
typename T >
301 return QPointF( index,
m_y[
int( index )] );
305 template<
typename T >
325 template<
typename T >
334 template<
typename T >
346 template<
typename T >
349 return QPointF(
m_x[
int( index )],
m_y[
int( index )] );
353 template<
typename T >
360 template<
typename T >
379 template<
typename T >
387 template<
typename T >
399 template<
typename T >
402 return QPointF( index,
m_y[
int( index ) ] );
406 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 m_intervalOfInterest
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 > & xData() 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)
const QVector< T > & yData() const
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