Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
transforms
custom_timeseries.cpp
Go to the documentation of this file.
1
#include "
custom_timeseries.h
"
2
#include <QSettings>
3
#include "
lua_custom_function.h
"
4
5
//CustomTimeseries::CustomTimeseries(const PlotData* source_data, const SnippetData& snippet, PlotDataMapRef& mapped_data)
6
// : TimeseriesQwt(source_data, &_cached_data), _mapped_data(mapped_data)
7
//{
8
// if (snippet.language == "LUA")
9
// {
10
// _transform = std::make_unique<LuaCustomFunction>(source_data->name(), snippet);
11
// }
12
// else // JS by default for back compatibility
13
// {
14
// _transform = std::make_unique<JsCustomFunction>(source_data->name(), snippet);
15
// }
16
17
// updateCache();
18
//}
19
20
//bool CustomTimeseries::updateCache()
21
//{
22
// if (_source_data->size() == 0)
23
// {
24
// _cached_data.clear();
25
// _bounding_box = QRectF();
26
// return true;
27
// }
28
29
// _transform->calculate(_mapped_data, &_cached_data);
30
// calculateBoundingBox();
31
32
// return true;
33
//}
custom_timeseries.h
lua_custom_function.h
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:47:33