##// END OF EJS Templates
Merge pull request 155 from SCIQLOP-Initialisation develop...
Merge pull request 155 from SCIQLOP-Initialisation develop Develop

File last commit:

r187:60a84e67b911
r189:e658778a16ed merge
Show More
GraphPlottablesFactory.h
32 lines | 1.1 KiB | text/x-c | CLexer
/ gui / include / Visualization / GraphPlottablesFactory.h
Alexandre Leroux
Creates factory that is responsible of creation of QCustomPlot components relative to a variable
r181 #ifndef SCIQLOP_GRAPHPLOTTABLESFACTORY_H
#define SCIQLOP_GRAPHPLOTTABLESFACTORY_H
#include <QLoggingCategory>
#include <QVector>
Alexandre Leroux
Pass Variable as shared_ptr
r187 #include <memory>
Alexandre Leroux
Creates factory that is responsible of creation of QCustomPlot components relative to a variable
r181 Q_DECLARE_LOGGING_CATEGORY(LOG_GraphPlottablesFactory)
class QCPAbstractPlottable;
class QCustomPlot;
class Variable;
/**
* @brief The GraphPlottablesFactory class aims to create the QCustomPlot components relative to a
* variable, depending on the data series of this variable
*/
struct GraphPlottablesFactory {
/**
* Creates (if possible) the QCustomPlot components relative to the variable passed in
* parameter, and adds these to the plot passed in parameter.
* @param variable the variable for which to create the components
* @param plot the plot in which to add the created components. It takes ownership of these
* components.
* @return the list of the components created
*/
Alexandre Leroux
Pass Variable as shared_ptr
r187 static QVector<QCPAbstractPlottable *> create(std::shared_ptr<Variable> variable,
Alexandre Leroux
Creates factory that is responsible of creation of QCustomPlot components relative to a variable
r181 QCustomPlot &plot) noexcept;
};
#endif // SCIQLOP_GRAPHPLOTTABLESFACTORY_H