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

Interface for iterating over a QVector<T>. More...

#include <qwt_point_data.h>

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

Public Member Functions

 QwtValuePointData (const QVector< T > &y)
 
 QwtValuePointData (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 > & 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_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 QwtValuePointData< T >

Interface for iterating over a QVector<T>.

The memory contains the y coordinates, while the index is interpreted as x coordinate.

Definition at line 67 of file qwt_point_data.h.

Constructor & Destructor Documentation

◆ QwtValuePointData() [1/2]

template<typename T >
QwtValuePointData< T >::QwtValuePointData ( const QVector< T > &  y)

Constructor

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

Definition at line 266 of file qwt_point_data.h.

◆ QwtValuePointData() [2/2]

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

Constructor

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

Definition at line 279 of file qwt_point_data.h.

Member Function Documentation

◆ sample()

template<typename T >
QPointF QwtValuePointData< 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 299 of file qwt_point_data.h.

◆ size()

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

Definition at line 287 of file qwt_point_data.h.

◆ yData()

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

Definition at line 306 of file qwt_point_data.h.

Member Data Documentation

◆ m_y

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

Definition at line 79 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