##// END OF EJS Templates
Separate the initialization of the properties of the graph of the update of the units of the graph....
Separate the initialization of the properties of the graph of the update of the units of the graph. The initialization of the properties is carried out when adding a variable in the graph, the update of the units is carried out when loading the data of this variable

File last commit:

r1336:7e198cfdb6a6
r1337:3acf26407503
Show More
PlottablesRenderingUtils.h
34 lines | 929 B | text/x-c | CLexer
/ gui / include / Visualization / PlottablesRenderingUtils.h
Alexandre Leroux
Handles rendering of plottables (1)...
r918 #ifndef SCIQLOP_PLOTTABLESRENDERINGUTILS_H
#define SCIQLOP_PLOTTABLESRENDERINGUTILS_H
Alexandre Leroux
Updates PlottablesRenderingUtils to use variable's type instead of dataseries
r1336 #include <Data/DataSeriesType.h>
Alexandre Leroux
Handles rendering of plottables (1)...
r918 #include <Visualization/VisualizationDefs.h>
#include <memory>
Alexandre Leroux
Adds logs to axe and plottable rendering utils
r927 #include <QtCore/QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(LOG_PlottablesRenderingUtils)
Alexandre Leroux
Handles rendering of plottables (1)...
r918 class QCPColorScale;
class QCustomPlot;
Alexandre Leroux
Updates PlottablesRenderingUtils to use variable's type instead of dataseries
r1336 class Variable;
Alexandre Leroux
Handles rendering of plottables (1)...
r918
/**
* Helper used to handle plottables rendering
*/
struct IPlottablesHelper {
virtual ~IPlottablesHelper() noexcept = default;
/// Set properties of the plottables passed as parameter
/// @param plottables the plottables for which to set properties
virtual void setProperties(PlottablesMap &plottables) = 0;
};
struct IPlottablesHelperFactory {
Alexandre Leroux
Updates PlottablesRenderingUtils to use variable's type instead of dataseries
r1336 /// Creates IPlottablesHelper according to the type of data series a variable holds
static std::unique_ptr<IPlottablesHelper> create(const Variable &variable) noexcept;
Alexandre Leroux
Handles rendering of plottables (1)...
r918 };
#endif // SCIQLOP_PLOTTABLESRENDERINGUTILS_H