Go to the documentation of this file.
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 >
Interface for iterating over two QVector<T> objects.
QwtValuePointData(const QVector< T > &y)
const QVector< T > & yData() const
Data class containing a pointer to memory of y coordinates.
virtual size_t size() const QWT_OVERRIDE
virtual size_t size() const QWT_OVERRIDE
virtual QPointF sample(size_t index) const QWT_OVERRIDE
QwtInterval m_intervalOfInterest
virtual size_t size() const QWT_OVERRIDE
const QVector< T > & xData() const
QwtPointArrayData(const QVector< T > &x, const QVector< T > &y)
span_constexpr std::size_t size(span< T, Extent > const &spn)
Data class containing two pointers to memory blocks of T.
A class representing an interval.
virtual QRectF boundingRect() const
Abstract interface for iterating over samples.
QwtCPointerData(const T *x, const T *y, size_t size)
virtual T sample(size_t i) const =0
virtual QPointF sample(size_t index) const QWT_OVERRIDE
virtual QPointF sample(size_t index) const QWT_OVERRIDE
Interface for iterating over a QVector<T>.
virtual size_t size() const =0
virtual void setRectOfInterest(const QRectF &rect)
const QVector< T > & yData() const
virtual size_t size() const QWT_OVERRIDE
QwtCPointerValueData(const T *y, size_t size)
virtual QPointF sample(size_t index) const QWT_OVERRIDE
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46