Go to the documentation of this file.
7 #ifndef REACTIVE_FUNCTION_H
8 #define REACTIVE_FUNCTION_H
14 class CreatedSeriesBase;
15 class CreatedSeriesTime;
16 class CreatedSeriesXY;
24 std::pair<double, double>
at(
unsigned i)
const;
26 void set(
unsigned index,
double x,
double y);
28 double atTime(
double t)
const;
30 unsigned size()
const;
43 std::pair<double, double>
at(
unsigned i)
const;
49 unsigned size()
const;
72 const char*
name()
const override
74 return "ReactiveLuaFunction";
87 void reset()
override;
98 bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element)
const override;
100 bool xmlLoadState(
const QDomElement& parent_element)
override;
135 #endif // REACTIVE_FUNCTION_H
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
std::vector< std::string > _created_curves
std::string _function_code
std::string _library_code
sol::usertype< CreatedSeriesXY > _created_scatter
sol::protected_function _lua_function
CreatedSeriesBase(PlotDataMapRef *data_map, const std::string &name, bool timeseries)
CreatedSeriesTime(PlotDataMapRef *data_map, const std::string &name)
std::pair< double, double > at(unsigned i) const
sol::usertype< CreatedSeriesTime > _created_timeseries
const char * name() const override
Name of the plugin type, NOT the particular instance.
sol::usertype< TimeseriesRef > _timeseries_ref
CreatedSeriesXY(PlotDataMapRef *data_map, const std::string &name)
void calculate() override
PJ::PlotDataXY * _plot_data
TimeseriesRef(PlotData *data)
int numOutputs() const override
PJ::PlotData * _plot_data
void setTimeTracker(double time_tracker_value)
void push_back(double x, double y)
const std::vector< std::string > & createdCurves() const
ReactiveLuaFunction(PlotDataMapRef *data_map, QString lua_global, QString lua_function, QString lua_library)
bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
QString getFunctionCode()
void set(unsigned index, double x, double y)
std::pair< double, double > at(unsigned i) const
int numInputs() const override
double atTime(double t) const
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46