UltraScan III
us_2dsa.h
Go to the documentation of this file.
1 #ifndef US_2DSA_H
2 #define US_2DSA_H
3 
4 #include "us_plot_control_2d.h"
6 #include "us_noise_loader.h"
7 #include "us_resplot_2d.h"
8 #include "us_dataIO.h"
9 #include "us_db2.h"
10 #include "us_solve_sim.h"
11 #include "us_model.h"
12 #include "us_noise.h"
13 #include "us_model_loader.h"
14 #include "us_editor.h"
15 #include "us_math2.h"
16 #include "us_run_details2.h"
17 #include "us_buffer_gui.h"
18 #include "us_analyte.h"
19 #include "qwt_plot_marker.h"
20 #include "us_analysis_base2.h"
21 
22 #ifndef DbgLv
23 #define DbgLv(a) if(dbg_level>=a)qDebug()
24 #endif
25 
26 #ifndef SP_SPEEDPROFILE
27 #define SP_SPEEDPROFILE US_SimulationParameters::SpeedProfile
28 #endif
29 #ifndef SS_DATASET
30 #define SS_DATASET US_SolveSim::DataSet
31 #endif
32 
33 class US_2dsa : public US_AnalysisBase2
34 {
35  Q_OBJECT
36 
37  public:
38  US_2dsa();
39 
40  void analysis_done( int );
41 
45  QList< int >* mw_excllist();
46  US_Model* mw_model();
49  QPointer< QTextEdit > mw_status_text();
50  int* mw_base_rss();
51 
52  private:
53  QGridLayout* progressLayout;
54 
56 
58 
59  QList< SS_DATASET* > dsets;
60 
61  QVector< SP_SPEEDPROFILE > speed_steps;
62 
66 
67  QPointer< US_ResidPlot2D > resplotd;
68  QPointer< US_PlotControl2D > eplotcd;
69  QPointer< US_AnalysisControl2D > analcd;
70 
74 
75  QList< US_Model > models;
76  QList< US_Noise > ri_noises;
77  QList< US_Noise > ti_noises;
78 
79  QPoint rbd_pos;
80  QPoint epd_pos;
81  QPoint acd_pos;
82 
83  QLineEdit* le_vari;
84  QLineEdit* le_rmsd;
85 
86  QTextEdit* te_status;
87 
88  QPushButton* pb_fitcntl;
89  QPushButton* pb_plt3d;
90  QPushButton* pb_pltres;
91 
92  bool loadDB;
93  bool exp_steps;
94 
95  double rmsd;
96 
97  int dbg_level;
98  int baserss;
99 
100  private slots:
101  void open_resplot( void );
102  void open_3dplot( void );
103  void open_fitcntl( void );
104  QString distrib_info( void );
105  QString iteration_info( void );
106  QString fit_meniscus_data( void );
107  void data_plot( void );
108  void write_report( QTextStream& );
109  void write_bmap( const QString );
110  void load ( void );
111  void view ( void );
112  void save ( void );
113  void new_triple( int );
114  void help ( void )
115  { showHelp.show_help( "manual/2dsa.html" ); };
116 };
117 #endif