#include <timeseries_qwt.h>
Public Member Functions | |
QRectF | boundingRect () const override |
virtual RangeOpt | getVisualizationRangeX () override |
virtual RangeOpt | getVisualizationRangeY (Range range_X) override |
QwtTimeseries (const PlotData *data) | |
QPointF | sample (size_t i) const override |
virtual std::optional< QPointF > | sampleFromTime (double t) |
void | setTimeOffset (double offset) |
void | updateCache (bool) override |
![]() | |
virtual const PlotDataXY * | plotData () const |
QwtSeriesWrapper (const PlotDataXY *data) | |
size_t | size () const override |
![]() | |
QwtSeriesData () | |
Constructor. More... | |
virtual void | setRectOfInterest (const QRectF &rect) |
virtual | ~QwtSeriesData () |
Destructor. More... | |
Protected Attributes | |
double | _time_offset = 0.0 |
const PlotData * | _ts_data |
![]() | |
QRectF | cachedBoundingRect |
Can be used to cache a calculated bounding rectangle. More... | |
Definition at line 44 of file timeseries_qwt.h.
|
inline |
Definition at line 47 of file timeseries_qwt.h.
|
overridevirtual |
Calculate the bounding rect of all samples
The bounding rect is necessary for autoscaling and can be used for a couple of painting optimizations.
qwtBoundingRect(...) offers slow implementations iterating over the samples. For large sets it is recommended to implement something faster f.e. by caching the bounding rectangle.
Reimplemented from QwtSeriesWrapper.
Definition at line 156 of file timeseries_qwt.cpp.
|
overridevirtual |
Reimplemented from QwtSeriesWrapper.
Reimplemented in PointSeriesXY.
Definition at line 207 of file timeseries_qwt.cpp.
Reimplemented from QwtSeriesWrapper.
Reimplemented in PointSeriesXY.
Definition at line 32 of file timeseries_qwt.cpp.
|
overridevirtual |
Return a sample
i | Index |
Reimplemented from QwtSeriesWrapper.
Definition at line 179 of file timeseries_qwt.cpp.
|
virtual |
Reimplemented in PointSeriesXY.
Definition at line 59 of file timeseries_qwt.cpp.
void QwtTimeseries::setTimeOffset | ( | double | offset | ) |
Definition at line 190 of file timeseries_qwt.cpp.
|
inlineoverridevirtual |
Reimplemented from QwtSeriesWrapper.
Reimplemented in TransformedTimeseries.
Definition at line 63 of file timeseries_qwt.h.
|
protected |
Definition at line 69 of file timeseries_qwt.h.
|
protected |
Definition at line 68 of file timeseries_qwt.h.