/[qspeakers]/plot.h
ViewVC logotype

Contents of /plot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 189 - (show annotations)
Tue May 30 21:44:41 2017 UTC (4 weeks, 1 day ago) by ben
File MIME type: text/plain
File size: 821 byte(s)
added plot coordinate picker
1 #ifndef PLOT_H
2 #define PLOT_H
3
4 #include <qwt_plot.h>
5 #include <qwt_plot_curve.h>
6 #include <qwt_plot_marker.h>
7 #include <qwt_plot_picker.h>
8
9 class Plot : public QwtPlot
10 {
11 Q_OBJECT
12
13 public:
14 Plot(QWidget *parent = 0);
15 Plot(QwtText title, QWidget *parent = 0);
16 ~Plot();
17 void plot(const QList<double> x, QList<double>y);
18 void clear(void);
19
20 double getXmin() const;
21 double getXmax() const;
22
23 void showPeak(double x, double y);
24 void show3dB(double x, double y);
25 protected:
26 void initializeScales();
27 void initializeCanvas();
28 void initializeCurve();
29 void initializeMarkers();
30 void initializePicker();
31 private:
32 QwtPlotCurve *curve;
33 double xmin;
34 double xmax;
35 QwtPlotMarker *markerP;
36 QwtPlotMarker *marker3;
37 QwtPlotPicker *picker;
38 };
39
40 #endif // PLOT_H

  ViewVC Help
Powered by ViewVC 1.1.26