UltraScan III
us_dcdt.h
Go to the documentation of this file.
1 #ifndef US_SECOND_MONENT_H
2 #define US_SECOND_MOMENT_H
3 
4 #include "us_analysis_base2.h"
5 #include "us_editor.h"
6 #include "us_math2.h"
7 
8 class US_Dcdt : public US_AnalysisBase2
9 {
10  Q_OBJECT
11 
12  public:
13  US_Dcdt();
14 
15  private:
16  int graphType;
17  int previousScanCount; // total # of scans before skipping and exclusion
18  double sMax;
19 
20  QVector< int > arraySizes;
21  QVector< int > arrayStart;
22  QVector< double > avgDcdt; // holds the average of all dcdt scans
23  QVector< double > avgS; // holds the transformation to s of avgDcdt
24 
25  static const int arrayLength = 400;
26 
28 
29  QRadioButton* rb_radius;
30  QRadioButton* rb_sed;
31  QRadioButton* rb_avg;
32 
33  QwtCounter* ct_sValue;
34 
35  QList< QVector< double > > dcdt; // holds all the dcdt scans
36  QList< QVector< double > > sValues; // holds s-value transformations from the dcdt scans
37 
38  void data_plot ( void );
39  QString results ( void );
40 
41  private slots:
42  void view ( void );
43  void save ( void );
44  void set_graph ( int );
45  void reset ( void );
46  void smooth10 ( void );
47  void sMaxChanged ( double );
48  void exclude ( void );
49  void reset_excludes( void );
50  void write_report ( QTextStream& );
51 
52  void help ( void )
53  { showHelp.show_help( "manual/time_derivative.html" ); };
54 };
55 #endif