#include <series_data.h>
Public Member Functions | |
QRectF | boundingRect () const override |
void | calculateBoundingBox () |
DataSeriesBase (const PlotData *transformed) | |
virtual PlotData::RangeTimeOpt | getVisualizationRangeX () |
virtual PlotData::RangeValueOpt | getVisualizationRangeY (PlotData::RangeTime range_X)=0 |
virtual QPointF | sample (size_t i) const override |
virtual nonstd::optional< QPointF > | sampleFromTime (double t)=0 |
void | setTimeOffset (double offset) |
virtual size_t | size () const override |
const PlotData * | transformedData () const |
virtual bool | updateCache ()=0 |
Public Member Functions inherited from QwtSeriesData< QPointF > | |
QwtSeriesData () | |
Constructor. More... | |
virtual void | setRectOfInterest (const QRectF &rect) |
virtual | ~QwtSeriesData () |
Destructor. More... | |
Protected Attributes | |
QRectF | _bounding_box |
Protected Attributes inherited from QwtSeriesData< QPointF > | |
QRectF | d_boundingRect |
Can be used to cache a calculated bounding rectangle. More... | |
Private Attributes | |
double | _time_offset |
const PlotData * | _transformed_data |
Definition at line 7 of file series_data.h.
|
inline |
Definition at line 11 of file series_data.h.
|
inlineoverridevirtual |
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 27 of file series_data.h.
|
inline |
Definition at line 70 of file series_data.h.
|
inlinevirtual |
Reimplemented in PointSeriesXY.
Definition at line 49 of file series_data.h.
|
pure virtual |
Implemented in PointSeriesXY, and TimeseriesQwt.
|
inlineoverridevirtual |
Return a sample
i | Index |
Implements QwtSeriesData< QPointF >.
Reimplemented in PointSeriesXY.
Definition at line 16 of file series_data.h.
|
pure virtual |
Implemented in PointSeriesXY, and TimeseriesQwt.
|
inline |
Definition at line 35 of file series_data.h.
|
inlineoverridevirtual |
Implements QwtSeriesData< QPointF >.
Definition at line 22 of file series_data.h.
|
inline |
Definition at line 59 of file series_data.h.
|
pure virtual |
Implemented in Timeseries_2ndDerivative, Timeseries_1stDerivative, Timeseries_NoTransform, PointSeriesXY, and CustomTimeseries.
|
protected |
Definition at line 62 of file series_data.h.
|
private |
Definition at line 66 of file series_data.h.
|
private |
Definition at line 65 of file series_data.h.