#include <timeseries_qwt.h>
Public Member Functions | |
QRectF | boundingRect () const override |
virtual RangeOpt | getVisualizationRangeX () |
virtual RangeOpt | getVisualizationRangeY (Range range_X)=0 |
const PlotDataBase< double > * | plotData () const |
QwtSeriesWrapper (const PlotDataBase< double > *data) | |
QPointF | sample (size_t i) const override |
virtual nonstd::optional< QPointF > | sampleFromTime (double t)=0 |
void | setTimeOffset (double offset) |
size_t | size () const override |
virtual bool | updateCache (bool reset_old_data)=0 |
Public Member Functions inherited from QwtSeriesData< QPointF > | |
QwtSeriesData () | |
Constructor. More... | |
virtual void | setRectOfInterest (const QRectF &rect) |
virtual | ~QwtSeriesData () |
Destructor. More... | |
Private Attributes | |
const PlotDataBase< double > * | _data |
double | _time_offset |
Additional Inherited Members | |
Protected Attributes inherited from QwtSeriesData< QPointF > | |
QRectF | d_boundingRect |
Can be used to cache a calculated bounding rectangle. More... | |
Definition at line 12 of file timeseries_qwt.h.
|
inline |
Definition at line 19 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.
Implements QwtSeriesData< QPointF >.
Definition at line 105 of file timeseries_qwt.cpp.
|
virtual |
Reimplemented in PointSeriesXY.
Definition at line 139 of file timeseries_qwt.cpp.
Implemented in QwtTimeseries, and PointSeriesXY.
const PlotDataBase< double > * QwtSeriesWrapper::plotData | ( | ) | const |
Definition at line 152 of file timeseries_qwt.cpp.
|
overridevirtual |
Return a sample
i | Index |
Implements QwtSeriesData< QPointF >.
Definition at line 123 of file timeseries_qwt.cpp.
|
pure virtual |
Implemented in QwtTimeseries, and PointSeriesXY.
void QwtSeriesWrapper::setTimeOffset | ( | double | offset | ) |
Definition at line 134 of file timeseries_qwt.cpp.
|
overridevirtual |
Implements QwtSeriesData< QPointF >.
Definition at line 129 of file timeseries_qwt.cpp.
Implemented in TransformedTimeseries, PointSeriesXY, and CustomTimeseries.
|
private |
Definition at line 15 of file timeseries_qwt.h.
|
private |
Definition at line 16 of file timeseries_qwt.h.