UltraScan III
us_2dplot.h
Go to the documentation of this file.
1 #ifndef US_2DPLOT_H
2 #define US_2DPLOT_H
3 
4 #include <QtGui>
5 #include <QApplication>
6 
7 #include "us_extern.h"
8 #include "us_widgets.h"
9 #include "us_plot.h"
10 
11 class US_2dPlot : public US_Widgets
12 {
13  Q_OBJECT
14 
15  public:
16  US_2dPlot();
17 
18  private:
19 
20  QVector <double> x, y;
21 
22  double resolution;
23  double s_min;
24  double s_max;
25  double f_min;
26  double f_max;
27  double par1;
28  double par2;
29  double par3;
30  double par4;
31  int model;
32 
33  QPushButton* pb_calculate;
34  QPushButton* pb_close;
35 
36  QLabel* lbl_par1;
37  QLabel* lbl_par2;
38  QLabel* lbl_par3;
39  QLabel* lbl_par4;
40  QLabel* lbl_resolution;
41  QLabel* lbl_model;
42 
43  QwtPlot* data_plot;
44  QwtPlotCurve* f_curve;
45  QwtCounter* ct_par1;
46  QwtCounter* ct_par2;
47  QwtCounter* ct_par3;
48  QwtCounter* ct_par4;
49  QwtCounter* ct_resolution;
50  QwtCounter* ct_model;
51 
52 
54 
55  private slots:
56  void calculate ( void );
57  void update_par1 ( double );
58  void update_par2 ( double );
59  void update_par3 ( double );
60  void update_par4 ( double );
61  void update_resolution ( double );
62  void update_model ( double );
63 };
64 #endif