Generic interface for a multi input - multi output transformation function. Contrariwise to other plugins, multiple instances of the this class might be created. For this reason, a TransformFactory is also defined. More...
#include <transform_function.h>
Public Types | |
using | Ptr = std::shared_ptr< TransformFunction > |
Signals | |
void | parametersChanged () |
Public Member Functions | |
virtual void | calculate ()=0 |
std::vector< const PlotData * > & | dataSources () |
virtual const char * | name () const =0 |
Name of the plugin type, NOT the particular instance. More... | |
virtual int | numInputs () const =0 |
virtual int | numOutputs () const =0 |
unsigned | order () const |
PlotDataMapRef * | plotData () |
virtual void | reset () |
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 | |
virtual bool | xmlLoadState (const QDomElement &parent_element) |
Override this method to load the status of the plugin from XML. More... | |
QDomElement | xmlSaveState (QDomDocument &doc) const |
virtual bool | xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const |
Override this method to save the status of the plugin to XML. More... | |
Protected Attributes | |
PlotDataMapRef * | _data |
std::vector< PlotData * > | _dst_vector |
unsigned | _order |
std::vector< const PlotData * > | _src_vector |
Generic interface for a multi input - multi output transformation function. Contrariwise to other plugins, multiple instances of the this class might be created. For this reason, a TransformFactory is also defined.
Definition at line 22 of file transform_function.h.
using PJ::TransformFunction::Ptr = std::shared_ptr<TransformFunction> |
Definition at line 27 of file transform_function.h.
PJ::TransformFunction::TransformFunction | ( | ) |
Definition at line 11 of file transform_function.cpp.
|
virtualdefault |
|
pure virtual |
Implemented in PJ::TransformFunction_SISO, PJ::ReactiveLuaFunction, CustomFunction, and QuaternionToRollPitchYaw.
std::vector< const PlotData * > & PJ::TransformFunction::dataSources | ( | ) |
Definition at line 17 of file transform_function.cpp.
|
pure virtual |
Name of the plugin type, NOT the particular instance.
Implements PJ::PlotJugglerPlugin.
Implemented in PJ::ReactiveLuaFunction, MovingAverageFilter, MovingVarianceFilter, MovingRMS, OutlierRemovalFilter, ScaleTransform, SamplesCountFilter, LuaCustomFunction, FirstDerivative, IntegralTransform, AbsoluteTransform, and QuaternionToRollPitchYaw.
|
pure virtual |
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 )
Implemented in PJ::TransformFunction_SISO, PJ::ReactiveLuaFunction, CustomFunction, and QuaternionToRollPitchYaw.
|
pure virtual |
Number of outputs. Define the size of the vector used in: calculate(std::vector<PlotData*>& dst_data)
Implemented in PJ::TransformFunction_SISO, PJ::ReactiveLuaFunction, CustomFunction, and QuaternionToRollPitchYaw.
|
inline |
Definition at line 69 of file transform_function.h.
|
signal |
|
inline |
Definition at line 57 of file transform_function.h.
|
inlinevirtual |
Clear the cache, state and any stored data
Reimplemented in PJ::TransformFunction_SISO, PJ::ReactiveLuaFunction, CustomFunction, IntegralTransform, MovingAverageFilter, MovingVarianceFilter, MovingRMS, and QuaternionToRollPitchYaw.
Definition at line 53 of file transform_function.h.
|
virtual |
Definition at line 22 of file transform_function.cpp.
|
protected |
Definition at line 80 of file transform_function.h.
|
protected |
Definition at line 79 of file transform_function.h.
|
protected |
Definition at line 82 of file transform_function.h.
|
protected |
Definition at line 78 of file transform_function.h.