##// END OF EJS Templates
Updates AMDA JSON file to handle spectrograms...
Updates AMDA JSON file to handle spectrograms - Sets "dataType" attribute to "spectrogram" for all products that have the "display_type" attribute set to "spectrogram" - Adds "server" attribute to spectrograms products to indicate that the server to use for these is the Amda test server

File last commit:

r927:c91efb7c50ed
r931:9b61a10c893b
Show More
AxisRenderingUtils.h
37 lines | 1.1 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 QCPColorScale;
class QCustomPlot;
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
virtual void setProperties(QCustomPlot &plot, QCPColorScale &colorScale) = 0;
};
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