##// END OF EJS Templates
Adds variable controller and properties to test structure...
Adds variable controller and properties to test structure - Properties will be used to define test bounds, like the number of variables to manipulate or the number of random operations to make - Variable controller will be the object manipulated during the random operations

File last commit:

r1009:761051f0c06c
r1169:49d15be9d590
Show More
AxisRenderingUtils.h
37 lines | 1.1 KiB | text/x-c | CLexer
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 #ifndef SCIQLOP_AXISRENDERINGUTILS_H
#define SCIQLOP_AXISRENDERINGUTILS_H
#include <memory>
Alexandre Leroux
Adds logs to axe and plottable rendering utils
r928 #include <QtCore/QLoggingCategory>
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 #include <QtCore/QString>
Alexandre Leroux
Adds logs to axe and plottable rendering utils
r928 Q_DECLARE_LOGGING_CATEGORY(LOG_AxisRenderingUtils)
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 class IDataSeries;
class QCPAxis;
class QCustomPlot;
Alexandre Leroux
Uses SciQlop color scale in graphs
r1009 class SqpColorScale;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915
Alexandre Leroux
Refactoring handling of axes properties (2)...
r916 /// Formats a data value according to the axis on which it is present
QString formatValue(double value, const QCPAxis &axis);
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 /**
* Helper used to handle axes rendering
*/
struct IAxisHelper {
virtual ~IAxisHelper() noexcept = default;
/// Set properties of the plot's axes and the color scale associated to plot passed as
/// parameters
/// @param plot the plot for which to set axe properties
/// @param colorScale the color scale for which to set properties
Alexandre Leroux
Uses SciQlop color scale in graphs
r1009 virtual void setProperties(QCustomPlot &plot, SqpColorScale &colorScale) = 0;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 };
struct IAxisHelperFactory {
/// Creates IAxisHelper according to a data series
static std::unique_ptr<IAxisHelper> create(std::shared_ptr<IDataSeries> dataSeries) noexcept;
};
#endif // SCIQLOP_AXISRENDERINGUTILS_H