##// END OF EJS Templates
PySide2 bindings + some GUI clean...
PySide2 bindings + some GUI clean - simple Python plugin with scalar product works - launcher args are forwarded to SciQLop app, this allow to choose between wayland and xcb for example - removed all not implemented widgets on main GUI - moved all widgets except plots into QDocWidgets Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1420:3c3e24550401
r1478:6e3f56cd8c8b
Show More
AxisRenderingUtils.h
46 lines | 1.4 KiB | text/x-c | CLexer
#ifndef SCIQLOP_AXISRENDERINGUTILS_H
#define SCIQLOP_AXISRENDERINGUTILS_H
#include <memory>
#include <QtCore/QLoggingCategory>
#include <QtCore/QString>
Q_DECLARE_LOGGING_CATEGORY(LOG_AxisRenderingUtils)
class IDataSeries;
class QCPAxis;
class QCustomPlot;
class SqpColorScale;
class Variable2;
/// Formats a data value according to the axis on which it is present
QString formatValue(double value, const QCPAxis& axis);
/**
* 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
virtual void setProperties(QCustomPlot& plot, SqpColorScale& colorScale) = 0;
/// 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;
};
struct IAxisHelperFactory
{
/// Creates IPlottablesHelper according to the type of data series a variable holds
static std::unique_ptr<IAxisHelper> create(Variable2& variable) noexcept;
};
#endif // SCIQLOP_AXISRENDERINGUTILS_H