Public Member Functions | Private Attributes | List of all members
QwtPointArrayData Class Reference

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

#include <qwt_point_data.h>

Inheritance diagram for QwtPointArrayData:
Inheritance graph
[legend]

Public Member Functions

virtual QRectF boundingRect () const
 Calculate the bounding rectangle. More...
 
 QwtPointArrayData (const QVector< double > &x, const QVector< double > &y)
 
 QwtPointArrayData (const double *x, const double *y, size_t size)
 
virtual QPointF sample (size_t i) const
 
virtual size_t size () const
 
const QVector< double > & xData () const
 
const QVector< double > & yData () const
 
- Public Member Functions inherited from QwtSeriesData< QPointF >
 QwtSeriesData ()
 Constructor. More...
 
virtual void setRectOfInterest (const QRectF &rect)
 
virtual ~QwtSeriesData ()
 Destructor. More...
 

Private Attributes

QVector< double > d_x
 
QVector< double > d_y
 

Additional Inherited Members

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

Detailed Description

Interface for iterating over two QVector<double> objects.

Definition at line 19 of file qwt_point_data.h.

Constructor & Destructor Documentation

QwtPointArrayData::QwtPointArrayData ( const QVector< double > &  x,
const QVector< double > &  y 
)

Constructor

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

Definition at line 22 of file qwt_point_data.cpp.

QwtPointArrayData::QwtPointArrayData ( const double *  x,
const double *  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 37 of file qwt_point_data.cpp.

Member Function Documentation

QRectF QwtPointArrayData::boundingRect ( ) const
virtual

Calculate the bounding rectangle.

The bounding rectangle is calculated once by iterating over all points and is stored for all following requests.

Returns
Bounding rectangle

Implements QwtSeriesData< QPointF >.

Definition at line 55 of file qwt_point_data.cpp.

QPointF QwtPointArrayData::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 75 of file qwt_point_data.cpp.

size_t QwtPointArrayData::size ( ) const
virtual
Returns
Size of the data set

Implements QwtSeriesData< QPointF >.

Definition at line 64 of file qwt_point_data.cpp.

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

Definition at line 81 of file qwt_point_data.cpp.

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

Definition at line 87 of file qwt_point_data.cpp.

Member Data Documentation

QVector<double> QwtPointArrayData::d_x
private

Definition at line 34 of file qwt_point_data.h.

QVector<double> QwtPointArrayData::d_y
private

Definition at line 35 of file qwt_point_data.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19