##// END OF EJS Templates
Link with selection zone on event creation
Link with selection zone on event creation

File last commit:

r1335:89a3f92d2fbb
r1348:eede5e75e31f
Show More
AxisRenderingUtils.h
44 lines | 1.4 KiB | text/x-c | CLexer
Alexandre Leroux
Refactoring handling of axes properties (1)...
r916 #ifndef SCIQLOP_AXISRENDERINGUTILS_H
#define SCIQLOP_AXISRENDERINGUTILS_H
#include <memory>
Alexandre Leroux
Adds logs to axe and plottable rendering utils
r927 #include <QtCore/QLoggingCategory>
Alexandre Leroux
Refactoring handling of axes properties (1)...
r916 #include <QtCore/QString>
Alexandre Leroux
Adds logs to axe and plottable rendering utils
r927 Q_DECLARE_LOGGING_CATEGORY(LOG_AxisRenderingUtils)
Alexandre Leroux
Refactoring handling of axes properties (1)...
r916 class IDataSeries;
class QCPAxis;
class QCustomPlot;
Alexandre Leroux
Uses SciQlop color scale in graphs
r1050 class SqpColorScale;
Alexandre Leroux
Updates AxisRenderingUtils to use variable's type instead of dataseries
r1335 class Variable;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r916
Alexandre Leroux
Refactoring handling of axes properties (2)...
r917 /// 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)...
r916 /**
* 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
r1050 virtual void setProperties(QCustomPlot &plot, SqpColorScale &colorScale) = 0;
Alexandre Leroux
Updates AxisRenderingUtils to use variable's type instead of dataseries
r1335
/// Set the units of the plot's axes and the color scale associated to plot passed as
/// parameters
/// @param plot the plot for which to set axe units
/// @param colorScale the color scale for which to set unit
virtual void setUnits(QCustomPlot &plot, SqpColorScale &colorScale) = 0;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r916 };
struct IAxisHelperFactory {
Alexandre Leroux
Updates AxisRenderingUtils to use variable's type instead of dataseries
r1335 /// Creates IPlottablesHelper according to the type of data series a variable holds
static std::unique_ptr<IAxisHelper> create(const Variable &variable) noexcept;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r916 };
#endif // SCIQLOP_AXISRENDERINGUTILS_H