##// 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:

r1019:1474b0522998
r1478:6e3f56cd8c8b
Show More
SqpColorScale.h
32 lines | 1.0 KiB | text/x-c | CLexer
#ifndef SCIQLOP_SQPCOLORSCALE_H
#define SCIQLOP_SQPCOLORSCALE_H
#include <Visualization/qcustomplot.h>
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(LOG_SqpColorScale)
/**
* @brief The SqpColorScale struct represents the color scale for some graphs (such as
* spectrograms).
*
* Its implementation is based on the QCustomPlot color scale (@sa QCPColorScale) to which are added
* other useful properties for viewing in SciQlop
*/
struct SqpColorScale {
static std::pair<double, double> computeThresholds(const SqpColorScale &scale);
explicit SqpColorScale(QCustomPlot &plot);
void updateDataRange() noexcept;
/// QCustomPlot object representing the color scale.
/// @remarks The SqpColorScale instance has not the property on this pointer. The pointer must
/// remain valid throughout the existence of the SqpColorScale instance
QCPColorScale *m_Scale{nullptr};
bool m_AutomaticThreshold{false};
QCPColorGradient::GradientPreset m_GradientPreset{QCPColorGradient::gpJet};
};
#endif // SCIQLOP_SQPCOLORSCALE_H