##// END OF EJS Templates
Creates a interface that defines a variable container...
Creates a interface that defines a variable container - A variable container is an entity that can eventually accomodate a variable (for example, from a menu or d'n'd) - The interfaces declares canDrop() method, that will be used to create a menu for a variable containing only the containers available for it, or to enable/disable d'n'd of this variable on a container - Each visualization widget is a variable container, so it implements canDrop() method

File last commit:

r174:60a84e67b911
r194:7ef1d04a5917
Show More
GraphPlottablesFactory.h
32 lines | 1.1 KiB | text/x-c | CLexer
#ifndef SCIQLOP_GRAPHPLOTTABLESFACTORY_H
#define SCIQLOP_GRAPHPLOTTABLESFACTORY_H
#include <QLoggingCategory>
#include <QVector>
#include <memory>
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
*/
static QVector<QCPAbstractPlottable *> create(std::shared_ptr<Variable> variable,
QCustomPlot &plot) noexcept;
};
#endif // SCIQLOP_GRAPHPLOTTABLESFACTORY_H