#include <custom_function.h>
Public Member Functions | |
void | calculate (const PlotDataMapRef &plotData, PlotData *dst_data) |
void | calculateAndAdd (PlotDataMapRef &plotData) |
CustomFunction (const std::string &linkedPlot, const std::string &plotName, const QString &globalVars, const QString &function) | |
CustomFunction (const std::string &linkedPlot, const SnippetData &snippet) | |
const QString & | function () const |
const QString & | globalVars () const |
const std::string & | linkedPlotName () const |
const std::string & | name () const |
QDomElement | xmlSaveState (QDomDocument &doc) const |
Static Public Member Functions | |
static CustomPlotPtr | createFromXML (QDomElement &element) |
static QStringList | getChannelsFromFuntion (const QString &function) |
Private Member Functions | |
PlotData::Point | calculatePoint (QJSValue &calcFct, const PlotData &src_data, const std::vector< const PlotData * > &channels_data, QJSValue &chan_values, size_t point_index) |
void | initJsEngine () |
Private Attributes | |
const QString | _function |
QString | _function_replaced |
const QString | _global_vars |
std::unique_ptr< QJSEngine > | _jsEngine |
double | _last_updated_timestamp |
const std::string | _linked_plot_name |
const std::string | _plot_name |
std::vector< std::string > | _used_channels |
Definition at line 32 of file custom_function.h.
CustomFunction::CustomFunction | ( | const std::string & | linkedPlot, |
const std::string & | plotName, | ||
const QString & | globalVars, | ||
const QString & | function | ||
) |
Definition at line 39 of file custom_function.cpp.
CustomFunction::CustomFunction | ( | const std::string & | linkedPlot, |
const SnippetData & | snippet | ||
) |
Definition at line 8 of file custom_function.cpp.
void CustomFunction::calculate | ( | const PlotDataMapRef & | plotData, |
PlotData * | dst_data | ||
) |
Definition at line 161 of file custom_function.cpp.
void CustomFunction::calculateAndAdd | ( | PlotDataMapRef & | plotData | ) |
Definition at line 86 of file custom_function.cpp.
|
private |
Definition at line 126 of file custom_function.cpp.
|
static |
Definition at line 251 of file custom_function.cpp.
const QString & CustomFunction::function | ( | ) | const |
Definition at line 224 of file custom_function.cpp.
|
static |
Definition at line 17 of file custom_function.cpp.
const QString & CustomFunction::globalVars | ( | ) | const |
Definition at line 219 of file custom_function.cpp.
|
private |
Definition at line 113 of file custom_function.cpp.
const std::string & CustomFunction::linkedPlotName | ( | ) | const |
Definition at line 214 of file custom_function.cpp.
const std::string & CustomFunction::name | ( | ) | const |
Definition at line 209 of file custom_function.cpp.
QDomElement CustomFunction::xmlSaveState | ( | QDomDocument & | doc | ) | const |
Definition at line 231 of file custom_function.cpp.
|
private |
Definition at line 73 of file custom_function.h.
|
private |
Definition at line 74 of file custom_function.h.
|
private |
Definition at line 72 of file custom_function.h.
|
private |
Definition at line 77 of file custom_function.h.
|
private |
Definition at line 78 of file custom_function.h.
|
private |
Definition at line 70 of file custom_function.h.
|
private |
Definition at line 71 of file custom_function.h.
|
private |
Definition at line 75 of file custom_function.h.