mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Upgrade to QWT 6.0.1, but still uses a locally patched copy since support for 8 axes has not been included, despite it being a relatively simple patch. Fixes #634. Fixes #567.
32 lines
557 B
C++
32 lines
557 B
C++
#ifndef _PLOT_H_
|
|
#define _PLOT_H_
|
|
|
|
#include <qwt_plot.h>
|
|
|
|
class QwtPlotCurve;
|
|
class QwtPlotMarker;
|
|
|
|
class Plot: public QwtPlot
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Plot(QWidget *parent);
|
|
|
|
public Q_SLOTS:
|
|
void setDamp(double damping);
|
|
|
|
private:
|
|
void showData(const double *frequency, const double *amplitude,
|
|
const double *phase, int count);
|
|
void showPeak(double freq, double amplitude);
|
|
void show3dB(double freq);
|
|
|
|
QwtPlotCurve *d_curve1;
|
|
QwtPlotCurve *d_curve2;
|
|
QwtPlotMarker *d_marker1;
|
|
QwtPlotMarker *d_marker2;
|
|
};
|
|
|
|
#endif
|