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 QwtPointSeriesData
virtual QRectF boundingRect () const QWT_OVERRIDE
 Calculate the bounding rectangle. More...
 
 QwtPointSeriesData (const QVector< QPointF > &=QVector< QPointF >())
 
- Public Member Functions inherited from QwtArraySeriesData< QPointF >
 QwtArraySeriesData ()
 Constructor. More...
 
 QwtArraySeriesData (const QVector< QPointF > &samples)
 
const QVector< QPointF > samples () const
 
void setSamples (const QVector< QPointF > &samples)
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Private Attributes

QVector< T > d_x
 
QVector< T > d_y
 

Additional Inherited Members

- Protected Attributes inherited from QwtArraySeriesData< QPointF >
QVector< QPointF > d_samples
 Vector of samples. More...
 
- Protected Attributes inherited from QwtSeriesData< QPointF >
QRectF d_boundingRect
 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

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.

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

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

Reimplemented from QwtArraySeriesData< QPointF >.

Definition at line 240 of file qwt_point_data.h.

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

Reimplemented from QwtArraySeriesData< QPointF >.

Definition at line 228 of file qwt_point_data.h.

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

Definition at line 247 of file qwt_point_data.h.

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

Definition at line 254 of file qwt_point_data.h.

Member Data Documentation

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

Definition at line 35 of file qwt_point_data.h.

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

Definition at line 36 of file qwt_point_data.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:50