timeseries_qwt.h
Go to the documentation of this file.
1 #ifndef PLOTDATA_QWT_H
2 #define PLOTDATA_QWT_H
3 
4 #include "series_data.h"
5 #include "PlotJuggler/plotdata.h"
6 
8 {
9 public:
10 
11  TimeseriesQwt(const PlotData *source_data, const PlotData* transformed_data);
12 
13  PlotData::RangeValueOpt getVisualizationRangeY(PlotData::RangeTime range_X) override;
14 
15  nonstd::optional<QPointF> sampleFromTime(double t) override;
16 
17 protected:
20 };
21 
22 //---------------------------------------------------------
23 
25 {
26 public:
27  Timeseries_NoTransform(const PlotData* source_data):
28  TimeseriesQwt( source_data, source_data )
29  {
30  updateCache();
31  }
32 
33  bool updateCache() override;
34 
35 };
36 
38 {
39 public:
40  Timeseries_1stDerivative(const PlotData* source_data):
41  TimeseriesQwt(source_data, &_cached_data)
42  {
43  updateCache();
44  }
45 
46  bool updateCache() override;
47 };
48 
50 {
51 public:
52  Timeseries_2ndDerivative(const PlotData* source_data):
53  TimeseriesQwt(source_data, &_cached_data)
54  {
55  updateCache();
56  }
57 
58  bool updateCache() override;
59 };
60 
61 
62 
63 #endif // PLOTDATA_H
const PlotData * _source_data
PlotData::RangeValueOpt getVisualizationRangeY(PlotData::RangeTime range_X) override
PlotData _cached_data
nonstd::optional< QPointF > sampleFromTime(double t) override
TimeseriesQwt(const PlotData *source_data, const PlotData *transformed_data)
Timeseries_2ndDerivative(const PlotData *source_data)
Timeseries_NoTransform(const PlotData *source_data)
Timeseries_1stDerivative(const PlotData *source_data)
virtual bool updateCache()=0


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