##// END OF EJS Templates
Small fix on Meson build defs...
Small fix on Meson build defs Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1420:3c3e24550401
r1463:05465cf17f8e
Show More
AxisRenderingUtils.h
46 lines | 1.4 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;
Switched to new TS impl but quite broken!...
r1420 class Variable2;
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
Switched to new TS impl but quite broken!...
r1420 QString formatValue(double value, const QCPAxis& axis);
Alexandre Leroux
Refactoring handling of axes properties (2)...
r916
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 /**
* Helper used to handle axes rendering
*/
Switched to new TS impl but quite broken!...
r1420 struct IAxisHelper
{
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 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
Switched to new TS impl but quite broken!...
r1420 virtual void setProperties(QCustomPlot& plot, SqpColorScale& colorScale) = 0;
Alexandre Leroux
Updates AxisRenderingUtils to use variable's type instead of dataseries
r1281
/// 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
Switched to new TS impl but quite broken!...
r1420 virtual void setUnits(QCustomPlot& plot, SqpColorScale& colorScale) = 0;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 };
Switched to new TS impl but quite broken!...
r1420 struct IAxisHelperFactory
{
Alexandre Leroux
Updates AxisRenderingUtils to use variable's type instead of dataseries
r1281 /// Creates IPlottablesHelper according to the type of data series a variable holds
Switched to new TS impl but quite broken!...
r1420 static std::unique_ptr<IAxisHelper> create(Variable2& variable) noexcept;
Alexandre Leroux
Refactoring handling of axes properties (1)...
r915 };
#endif // SCIQLOP_AXISRENDERINGUTILS_H