Go to the documentation of this file.
7 #ifndef PJ_TRANSFORM_FUNCTION_H
8 #define PJ_TRANSFORM_FUNCTION_H
10 #include <QApplication>
27 using Ptr = std::shared_ptr<TransformFunction>;
33 virtual const char*
name()
const = 0;
65 std::vector<PlotData*>& dst_vect);
85 using TransformsMap = std::unordered_map<std::string, std::shared_ptr<TransformFunction>>;
94 void reset()
override;
140 template <
typename T>
143 const std::string name = T::transformName();
146 QDomDocument* document = &(doc_it->second);
148 auto trans = std::make_shared<T>();
149 T* transform = trans.get();
152 [transform, document]() {
154 auto root = document->createElement(
"root");
155 document->appendChild(root);
156 transform->xmlSaveState(*document, root);
158 auto root = document->firstChildElement(
"root");
161 QSignalBlocker
block(trans.get());
162 trans->xmlLoadState(root);
179 #define TransformFunction_iid "facontidavide.PlotJuggler3.TransformFunction"
182 #define TransformFunctionSISO_iid "facontidavide.PlotJuggler3.TransformFunctionSISO"
auto first(const T &value, const Tail &...) -> const T &
std::unordered_map< std::string, std::shared_ptr< TransformFunction > > TransformsMap
The PlotJugglerPlugin is the base class of all the plugins.
static void block(LexState *ls)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:48