UltraScan III
us_mwlramp.h
Go to the documentation of this file.
1 #ifndef US_MWLRAMP_H
2 #define US_MWLRAMP_H
3 
4 #include <QtCore>
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_dataIO.h"
9 
10 #ifndef DbgLv
11 #define DbgLv(a) if(dbg_level>=a)qDebug()
12 #endif
13 
15 class US_mwlRamp : public QObject
16 {
17  Q_OBJECT
18 
19 public:
20  US_mwlRamp( );
21 
24  {
25  public:
26  QChar cell;
27  QChar chan;
28  QString description;
29 
30  double temperature;
31  double radius;
32  double meniscus;
33  double bottom;
34 
35  QVector <double> rpm;
36  QVector <double> time;
37  QVector <double> w2t;
38 
39  QVector <int> wl_array;
40  QVector <QVector<double> > intarray;
41 
43  };
44 
45  QString cur_dir;
46  QLineEdit* le_status;
47  int dbg_level;
48  int nfile;
49 
50  // xml-data read by read_runxml()
51  QString runID;
52  double radius;
53  QStringList cellchans;
54  QStringList samplenames;
55  QVector<double> menisci;
56  QVector<double> bottoms;
57 
58  double Temperature;
59 
60 
61  // data read from filenames
62  QStringList cells;
63 
64  void clear ( void );
65 
66 
73  bool import_data ( QString&, QLineEdit*,
74  QVector< US_mwlRamp::RampRawData >& allData, QString & runID_xml_mwl);
75 
76 private:
77  QVector< int > ri_wavelns;
78  QVector< QVector< int > > ex_wavelns;
79  QStringList fpaths; // Input file paths
80  QStringList fnames; // Input file names
81  int ncelchn;
82  int nlambda;
83  int nlamb_i;
84  int curccx;
85  int slambda;
86  int elambda;
87  QMap< QString, int > counts;
88 
89 private slots:
90  void read_runxml ( QDir, QString );
91 // void mapCounts ( void );
92 };
93 #endif