Public Member Functions | Private Attributes | List of all members
LuaCustomFunction Class Reference

#include <lua_custom_function.h>

Inheritance diagram for LuaCustomFunction:
Inheritance graph
[legend]

Public Member Functions

PlotData::Point calculatePoint (const PlotData &src_data, const std::vector< const PlotData * > &channels_data, size_t point_index) override
 
void initEngine () override
 
QString language () const override
 
 LuaCustomFunction (const SnippetData &snippet)
 
- Public Member Functions inherited from CustomFunction
void calculate (const PlotDataMapRef &plotData, PlotData *dst_data)
 
void calculateAndAdd (PlotDataMapRef &plotData)
 
void clear ()
 
 CustomFunction (const SnippetData &snippet)
 
const std::string & linkedPlotName () const
 
const std::string & name () const
 
const SnippetDatasnippet () const
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Private Attributes

std::vector< double > _chan_values
 
std::unique_ptr< sol::state_lua_engine
 
sol::protected_function _lua_function
 

Additional Inherited Members

- Static Public Member Functions inherited from CustomFunction
static CustomPlotPtr createFromXML (QDomElement &element)
 
- Protected Attributes inherited from CustomFunction
const std::string _linked_plot_name
 
const std::string _plot_name
 
const SnippetData _snippet
 
std::vector< std::string > _used_channels
 

Detailed Description

Definition at line 7 of file lua_custom_function.h.

Constructor & Destructor Documentation

LuaCustomFunction::LuaCustomFunction ( const SnippetData snippet)

Definition at line 3 of file lua_custom_function.cpp.

Member Function Documentation

PlotData::Point LuaCustomFunction::calculatePoint ( const PlotData src_data,
const std::vector< const PlotData * > &  channels_data,
size_t  point_index 
)
overridevirtual

Implements CustomFunction.

Definition at line 28 of file lua_custom_function.cpp.

void LuaCustomFunction::initEngine ( )
overridevirtual

Implements CustomFunction.

Definition at line 9 of file lua_custom_function.cpp.

QString LuaCustomFunction::language ( ) const
inlineoverridevirtual

Implements CustomFunction.

Definition at line 18 of file lua_custom_function.h.

Member Data Documentation

std::vector<double> LuaCustomFunction::_chan_values
private

Definition at line 26 of file lua_custom_function.h.

std::unique_ptr<sol::state> LuaCustomFunction::_lua_engine
private

Definition at line 24 of file lua_custom_function.h.

sol::protected_function LuaCustomFunction::_lua_function
private

Definition at line 25 of file lua_custom_function.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:49