#include <custom_function.h>
Public Member Functions | |
QString | aliasName () const |
void | calculate () override |
void | calculateAndAdd (PlotDataMapRef &src_data) |
virtual void | calculatePoints (const std::vector< const PlotData * > &src_data, size_t point_index, std::vector< PlotData::Point > &new_points)=0 |
CustomFunction (SnippetData snippet={}) | |
virtual void | initEngine ()=0 |
virtual QString | language () const =0 |
int | numInputs () const override |
int | numOutputs () const override |
void | reset () override |
void | setSnippet (const SnippetData &snippet) |
const SnippetData & | snippet () const |
bool | xmlLoadState (const QDomElement &parent_element) override |
Override this method to load the status of the plugin from XML. More... | |
bool | xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const override |
Override this method to save the status of the plugin to XML. More... | |
Public Member Functions inherited from PJ::TransformFunction | |
std::vector< const PlotData * > & | dataSources () |
virtual const char * | name () const =0 |
Name of the plugin type, NOT the particular instance. More... | |
unsigned | order () const |
PlotDataMapRef * | plotData () |
virtual void | setData (PlotDataMapRef *data, const std::vector< const PlotData * > &src_vect, std::vector< PlotData * > &dst_vect) |
TransformFunction () | |
virtual | ~TransformFunction ()=default |
Public Member Functions inherited from PJ::PlotJugglerPlugin | |
virtual const std::vector< QAction * > & | availableActions () |
virtual bool | isDebugPlugin () |
virtual QWidget * | optionsWidget () |
optionsWidget pointer to a persistent widget used to set the plugin options . More... | |
PlotJugglerPlugin ()=default | |
QDomElement | xmlSaveState (QDomDocument &doc) const |
Protected Attributes | |
std::string | _linked_plot_name |
std::string | _plot_name |
SnippetData | _snippet |
std::vector< std::string > | _used_channels |
Protected Attributes inherited from PJ::TransformFunction | |
PlotDataMapRef * | _data |
std::vector< PlotData * > | _dst_vector |
unsigned | _order |
std::vector< const PlotData * > | _src_vector |
Additional Inherited Members | |
Public Types inherited from PJ::TransformFunction | |
using | Ptr = std::shared_ptr< TransformFunction > |
Signals inherited from PJ::TransformFunction | |
void | parametersChanged () |
Definition at line 40 of file custom_function.h.
CustomFunction::CustomFunction | ( | SnippetData | snippet = {} | ) |
Definition at line 9 of file custom_function.cpp.
|
inline |
Definition at line 59 of file custom_function.h.
|
overridevirtual |
Implements PJ::TransformFunction.
Definition at line 69 of file custom_function.cpp.
void CustomFunction::calculateAndAdd | ( | PlotDataMapRef & | src_data | ) |
Definition at line 33 of file custom_function.cpp.
|
pure virtual |
Implemented in LuaCustomFunction.
|
pure virtual |
Implemented in LuaCustomFunction.
|
pure virtual |
Implemented in LuaCustomFunction.
|
inlineoverridevirtual |
Number of inputs. Return -1 if it is not a constant.
When numInputs() > 0, then the data will be initialized using the method: setDataSource(const std::vector<const PlotData*>& src_data)
When numInputs() == -1, then the number of inputs is undefined and the data will be initialized using the method_ setDataSource( PlotDataMapRef* data )
Implements PJ::TransformFunction.
Definition at line 49 of file custom_function.h.
|
inlineoverridevirtual |
Number of outputs. Define the size of the vector used in: calculate(std::vector<PlotData*>& dst_data)
Implements PJ::TransformFunction.
Definition at line 54 of file custom_function.h.
|
overridevirtual |
Clear the cache, state and any stored data
Reimplemented from PJ::TransformFunction.
Definition at line 27 of file custom_function.cpp.
void CustomFunction::setSnippet | ( | const SnippetData & | snippet | ) |
Definition at line 14 of file custom_function.cpp.
const SnippetData & CustomFunction::snippet | ( | ) | const |
Definition at line 64 of file custom_function.cpp.
|
overridevirtual |
Override this method to load the status of the plugin from XML.
Reimplemented from PJ::PlotJugglerPlugin.
Reimplemented in LuaCustomFunction.
Definition at line 126 of file custom_function.cpp.
|
overridevirtual |
Override this method to save the status of the plugin to XML.
Reimplemented from PJ::PlotJugglerPlugin.
Definition at line 120 of file custom_function.cpp.
|
protected |
Definition at line 84 of file custom_function.h.
|
protected |
Definition at line 85 of file custom_function.h.
|
protected |
Definition at line 83 of file custom_function.h.
|
protected |
Definition at line 87 of file custom_function.h.