#include <point_series_xy.h>
Public Member Functions | |
QRectF | boundingRect () const override |
PlotData::RangeTimeOpt | getVisualizationRangeX () override |
PlotData::RangeValueOpt | getVisualizationRangeY (PlotData::RangeTime range_X) override |
PointSeriesXY (const PlotData *y_axis, const PlotData *x_axis) | |
virtual QPointF | sample (size_t i) const override |
nonstd::optional< QPointF > | sampleFromTime (double t) override |
bool | updateCache () override |
Protected Attributes | |
PlotData | _cached_curve |
const PlotData * | _x_axis |
const PlotData * | _y_axis |
Definition at line 6 of file point_series_xy.h.
PointSeriesXY::PointSeriesXY | ( | const PlotData * | y_axis, |
const PlotData * | x_axis | ||
) |
Definition at line 5 of file point_series_xy.cpp.
QRectF PointSeriesXY::boundingRect | ( | ) | const [inline, override, virtual] |
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 DataSeriesBase.
Definition at line 17 of file point_series_xy.h.
PlotData::RangeTimeOpt PointSeriesXY::getVisualizationRangeX | ( | ) | [override, virtual] |
Reimplemented from DataSeriesBase.
Definition at line 14 of file point_series_xy.cpp.
PlotData::RangeValueOpt PointSeriesXY::getVisualizationRangeY | ( | PlotData::RangeTime | range_X | ) | [override, virtual] |
Implements DataSeriesBase.
Definition at line 40 of file point_series_xy.cpp.
virtual QPointF PointSeriesXY::sample | ( | size_t | i | ) | const [inline, override, virtual] |
Return a sample
i | Index |
Reimplemented from DataSeriesBase.
Definition at line 11 of file point_series_xy.h.
nonstd::optional< QPointF > PointSeriesXY::sampleFromTime | ( | double | t | ) | [override, virtual] |
Implements DataSeriesBase.
Definition at line 24 of file point_series_xy.cpp.
bool PointSeriesXY::updateCache | ( | ) | [override, virtual] |
Implements DataSeriesBase.
Definition at line 47 of file point_series_xy.cpp.
PlotData PointSeriesXY::_cached_curve [protected] |
Definition at line 34 of file point_series_xy.h.
const PlotData* PointSeriesXY::_x_axis [protected] |
Definition at line 32 of file point_series_xy.h.
const PlotData* PointSeriesXY::_y_axis [protected] |
Definition at line 33 of file point_series_xy.h.