|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Synthetic point data. More...
#include <qwt_point_data.h>
Public Member Functions | |
| QwtSyntheticPointData (size_t size, const QwtInterval &=QwtInterval()) | |
| Constructor. | |
| void | setSize (size_t size) |
| Change the number of points. | |
| virtual size_t | size () const override |
| Get the number of points. | |
| void | setInterval (const QwtInterval &) |
| Set the bounding interval. | |
| QwtInterval | interval () const |
| Get the bounding interval. | |
| virtual QRectF | boundingRect () const override |
| Calculate the bounding rectangle. | |
| virtual QPointF | sample (size_t index) const override |
| Calculate the point from an index. | |
| virtual double | y (double x) const =0 |
| Calculate a y value for a x value. | |
| virtual double | x (size_t index) const |
| Calculate a x-value from an index. | |
| virtual void | setRectOfInterest (const QRectF &) override |
| Set the "rectangle of interest". | |
| QRectF | rectOfInterest () const |
| Get the "rectangle of interest". | |
Public Member Functions inherited from QwtPointSeriesData | |
| QwtPointSeriesData (const QVector< QPointF > &=QVector< QPointF >()) | |
| Constructor. | |
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. | |
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. | |
Synthetic point data.
| QwtSyntheticPointData::QwtSyntheticPointData | ( | size_t | size, |
| const QwtInterval & | interval = QwtInterval() |
||
| ) |
Constructor.
|
overridevirtual |
Calculate the bounding rectangle.
Reimplemented from QwtPointSeriesData.
| QwtInterval QwtSyntheticPointData::interval | ( | ) | const |
Get the bounding interval.
| QRectF QwtSyntheticPointData::rectOfInterest | ( | ) | const |
Get the "rectangle of interest".
|
overridevirtual |
Calculate the point from an index.
Reimplemented from QwtArraySeriesData< QPointF >.
| void QwtSyntheticPointData::setInterval | ( | const QwtInterval & | interval | ) |
Set the bounding interval.
|
overridevirtual |
Set the "rectangle of interest".
Reimplemented from QwtSeriesData< T >.
| void QwtSyntheticPointData::setSize | ( | size_t | size | ) |
Change the number of points.
|
overridevirtual |
Get the number of points.
Reimplemented from QwtArraySeriesData< QPointF >.
|
virtual |
Calculate a x-value from an index.
|
pure virtual |
Calculate a y value for a x value.