QWT 7.0.1
Loading...
Searching...
No Matches
Public Member Functions | 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 >:
QwtPointSeriesData QwtArraySeriesData< QPointF > QwtSeriesData< T >

Public Member Functions

 QwtPointArrayData (const QVector< T > &x, const QVector< T > &y)
 Constructor.
 
 QwtPointArrayData (QVector< T > &&x, QVector< T > &&y)
 Constructor.
 
 QwtPointArrayData (const T *x, const T *y, size_t size)
 Constructor.
 
virtual size_t size () const QWT_OVERRIDE
 
virtual QPointF sample (size_t index) const QWT_OVERRIDE
 Return the sample at position i.
 
const QVector< T > & xData () const
 
const QVector< T > & yData () const
 
- Public Member Functions inherited from QwtPointSeriesData
 QwtPointSeriesData (const QVector< QPointF > &=QVector< QPointF >())
 Constructor.
 
virtual QRectF boundingRect () const QWT_OVERRIDE
 Calculate the bounding rectangle.
 
- Public Member Functions inherited from QwtArraySeriesData< QPointF >
 QwtArraySeriesData ()
 Constructor.
 
 QwtArraySeriesData (const QVector< QPointF > &samples)
 Constructor.
 
 QwtArraySeriesData (QVector< QPointF > &&samples)
 
void setSamples (const QVector< QPointF > &samples)
 Assign an array of samples.
 
void setSamples (QVector< QPointF > &&samples)
 
const QVector< QPointF > samples () const
 
- Public Member Functions inherited from QwtSeriesData< T >
 QwtSeriesData ()
 Constructor.
 
virtual ~QwtSeriesData ()
 Destructor.
 
virtual void setRectOfInterest (const QRectF &rect)
 Set a the "rect of interest".
 

Additional Inherited Members

- Protected Attributes inherited from QwtArraySeriesData< QPointF >
QVector< QPointF > m_samples
 Vector of samples.
 
- Protected Attributes inherited from QwtSeriesData< T >
QRectF cachedBoundingRect
 Can be used to cache a calculated bounding rectangle.
 

Detailed Description

template<typename T>
class QwtPointArrayData< T >

Interface for iterating over two QVector<T> objects.

Constructor & Destructor Documentation

◆ QwtPointArrayData() [1/3]

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()

◆ QwtPointArrayData() [2/3]

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

Constructor.

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

◆ QwtPointArrayData() [3/3]

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()

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

Reimplemented from QwtArraySeriesData< QPointF >.

◆ size()

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

Reimplemented from QwtArraySeriesData< QPointF >.

◆ xData()

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

◆ yData()

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

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