Public Member Functions | Private Attributes | List of all members
QwtPointArrayData< T > Class Template Reference

Interface for iterating over two QVector<T> objects. More...

#include <qwt_point_data.h>

Inheritance diagram for QwtPointArrayData< T >:
Inheritance graph
[legend]

Public Member Functions

 QwtPointArrayData (const QVector< T > &x, const QVector< T > &y)
 
 QwtPointArrayData (const T *x, const T *y, size_t size)
 
virtual QPointF sample (size_t index) const QWT_OVERRIDE
 
virtual size_t size () const QWT_OVERRIDE
 
const QVector< T > & xData () const
 
const QVector< T > & yData () const
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
virtual QRectF boundingRect () const
 
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual size_t size () const=0
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Private Attributes

QVector< T > m_x
 
QVector< T > m_y
 

Additional Inherited Members

- Protected Attributes inherited from QwtSeriesData< QPointF >
QRectF cachedBoundingRect
 Can be used to cache a calculated bounding rectangle. More...
 

Detailed Description

template<typename T>
class QwtPointArrayData< T >

Interface for iterating over two QVector<T> objects.

Definition at line 22 of file qwt_point_data.h.

Constructor & Destructor Documentation

◆ QwtPointArrayData() [1/2]

template<typename T >
QwtPointArrayData< T >::QwtPointArrayData ( const QVector< T > &  x,
const QVector< T > &  y 
)

Constructor

Parameters
xArray of x values
yArray of y values
See also
QwtPlotCurve::setData(), QwtPlotCurve::setSamples()

Definition at line 200 of file qwt_point_data.h.

◆ QwtPointArrayData() [2/2]

template<typename T >
QwtPointArrayData< T >::QwtPointArrayData ( const T *  x,
const T *  y,
size_t  size 
)

Constructor

Parameters
xArray of x values
yArray of y values
sizeSize of the x and y arrays
See also
QwtPlotCurve::setData(), QwtPlotCurve::setSamples()

Definition at line 216 of file qwt_point_data.h.

Member Function Documentation

◆ sample()

template<typename T >
QPointF QwtPointArrayData< T >::sample ( size_t  index) const
virtual

Return the sample at position i

Parameters
indexIndex
Returns
Sample at position i

Implements QwtSeriesData< QPointF >.

Definition at line 239 of file qwt_point_data.h.

◆ size()

template<typename T >
size_t QwtPointArrayData< T >::size
virtual
Returns
Size of the data set

Definition at line 227 of file qwt_point_data.h.

◆ xData()

template<typename T >
const QVector< T > & QwtPointArrayData< T >::xData
Returns
Array of the x-values

Definition at line 246 of file qwt_point_data.h.

◆ yData()

template<typename T >
const QVector< T > & QwtPointArrayData< T >::yData
Returns
Array of the y-values

Definition at line 253 of file qwt_point_data.h.

Member Data Documentation

◆ m_x

template<typename T >
QVector< T > QwtPointArrayData< T >::m_x
private

Definition at line 42 of file qwt_point_data.h.

◆ m_y

template<typename T >
QVector< T > QwtPointArrayData< T >::m_y
private

Definition at line 43 of file qwt_point_data.h.


The documentation for this class was generated from the following file:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51