custom_timeseries.cpp
Go to the documentation of this file.
1 #include "custom_timeseries.h"
2 
3 
5  const SnippetData &snippet,
6  PlotDataMapRef &mapped_data):
7  TimeseriesQwt( source_data, &_cached_data ),
8  _transform(source_data->name(), snippet),
9  _mapped_data(mapped_data)
10 {
11  updateCache();
12 }
13 
15 {
16  if(_source_data->size() == 0)
17  {
19  _bounding_box = QRectF();
20  return true;
21  }
22 
25 
26  return true;
27 }
const PlotData * _source_data
CustomFunction _transform
PlotData _cached_data
CustomTimeseries(const PlotData *source_data, const SnippetData &snippet, PlotDataMapRef &mapped_data)
const PlotDataMapRef & _mapped_data
void calculateBoundingBox()
Definition: series_data.h:70
void calculate(const PlotDataMapRef &plotData, PlotData *dst_data)
void clear()
Definition: plotdata.h:301
QRectF _bounding_box
Definition: series_data.h:62
virtual size_t size() const
Definition: plotdata.h:308
char name[1]
bool updateCache() override


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