24 lines
434 B
C
24 lines
434 B
C
|
|
#ifndef CUSTOMQWTPLOT_H
|
||
|
|
#define CUSTOMQWTPLOT_H
|
||
|
|
|
||
|
|
#include <QList>
|
||
|
|
#include <QwtPlot>
|
||
|
|
|
||
|
|
class QwtPlotCurve;
|
||
|
|
|
||
|
|
class CustomQwtPlot : public QwtPlot
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit CustomQwtPlot(QWidget* parent = nullptr);
|
||
|
|
|
||
|
|
const QList<QwtPlotCurve*>& GetCurveList() const;
|
||
|
|
void AddCurve(QwtPlotCurve* curve);
|
||
|
|
|
||
|
|
private:
|
||
|
|
QList<QwtPlotCurve*> _curves;
|
||
|
|
};
|
||
|
|
|
||
|
|
QColor getDistinctColorForManyCurves(int curve_index);
|
||
|
|
|
||
|
|
#endif // CUSTOMQWTPLOT_H
|