File: bode_plot.h

package info (click to toggle)
qwt5 5.2.2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,340 kB
  • sloc: cpp: 32,645; makefile: 23; sh: 4
file content (25 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <qwt_plot.h>

class QwtPlotCurve;
class QwtPlotMarker;

class BodePlot: public QwtPlot
{
    Q_OBJECT
public:
    BodePlot(QWidget *parent);

public slots:
    void setDamp(double damping);

private:
    void showData(double *frequency, double *amplitude, 
        double *phase, int count);
    void showPeak(double freq, double amplitude);
    void show3dB(double freq);

    QwtPlotCurve *d_crv1;
    QwtPlotCurve *d_crv2;
    QwtPlotMarker *d_mrk1;
    QwtPlotMarker *d_mrk2;
};