PlottablesRenderingUtils.h
34 lines
| 929 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r917 | #ifndef SCIQLOP_PLOTTABLESRENDERINGUTILS_H | ||
#define SCIQLOP_PLOTTABLESRENDERINGUTILS_H | ||||
Alexandre Leroux
|
r1282 | #include <Data/DataSeriesType.h> | ||
Alexandre Leroux
|
r917 | #include <Visualization/VisualizationDefs.h> | ||
#include <memory> | ||||
Alexandre Leroux
|
r928 | #include <QtCore/QLoggingCategory> | ||
Q_DECLARE_LOGGING_CATEGORY(LOG_PlottablesRenderingUtils) | ||||
Alexandre Leroux
|
r917 | class QCPColorScale; | ||
class QCustomPlot; | ||||
Alexandre Leroux
|
r1282 | class Variable; | ||
Alexandre Leroux
|
r917 | |||
/** | ||||
* 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
|
r1282 | /// Creates IPlottablesHelper according to the type of data series a variable holds | ||
static std::unique_ptr<IPlottablesHelper> create(const Variable &variable) noexcept; | ||||
Alexandre Leroux
|
r917 | }; | ||
#endif // SCIQLOP_PLOTTABLESRENDERINGUTILS_H | ||||