##// END OF EJS Templates
Creates factory that is responsible of creation of QCustomPlot components relative to a variable
Creates factory that is responsible of creation of QCustomPlot components relative to a variable

File last commit:

r168:9fde42db8d93
r168:9fde42db8d93
Show More
GraphPlottablesFactory.cpp
22 lines | 649 B | text/x-c | CppLexer
/ gui / src / Visualization / GraphPlottablesFactory.cpp
#include "Visualization/GraphPlottablesFactory.h"
#include "Visualization/qcustomplot.h"
#include <Variable/Variable.h>
Q_LOGGING_CATEGORY(LOG_GraphPlottablesFactory, "GraphPlottablesFactory")
QVector<QCPAbstractPlottable *> GraphPlottablesFactory::create(const Variable *variable,
QCustomPlot &plot) noexcept
{
auto result = QVector<QCPAbstractPlottable *>{};
if (variable) {
/// @todo ALX
}
else {
qCDebug(LOG_GraphPlottablesFactory())
<< QObject::tr("Can't create graph plottables : the variable is null");
}
return result;
}