point_series_xy.h
Go to the documentation of this file.
1 #ifndef POINT_SERIES_H
2 #define POINT_SERIES_H
3 
4 #include "series_data.h"
5 
7 {
8 public:
9  PointSeriesXY(const PlotData* y_axis, const PlotData* x_axis);
10 
11  virtual QPointF sample( size_t i ) const override
12  {
13  const auto& p = _cached_curve.at(i);
14  return QPointF(p.x, p.y);
15  }
16 
17  QRectF boundingRect() const override
18  {
19  return _bounding_box;
20  }
21 
23 
24  nonstd::optional<QPointF> sampleFromTime(double t) override;
25 
26  PlotData::RangeValueOpt getVisualizationRangeY(PlotData::RangeTime range_X) override;
27 
28  bool updateCache() override;
29 
30 protected:
31 
32  const PlotData *_x_axis;
33  const PlotData *_y_axis;
35 };
36 
37 #endif // POINT_SERIES_H
PointSeriesXY(const PlotData *y_axis, const PlotData *x_axis)
const Point & at(size_t index) const
Definition: plotdata.h:288
const PlotData * _y_axis
QRectF _bounding_box
Definition: series_data.h:62
PlotData::RangeValueOpt getVisualizationRangeY(PlotData::RangeTime range_X) override
virtual QPointF sample(size_t i) const override
QRectF boundingRect() const override
nonstd::optional< QPointF > sampleFromTime(double t) override
PlotData::RangeTimeOpt getVisualizationRangeX() override
const PlotData * _x_axis
bool updateCache() override
PlotData _cached_curve


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17