forked from githubdoe/DFTFringe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astigstatsdlg.h
70 lines (58 loc) · 1.48 KB
/
astigstatsdlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef ASTIGSTATSDLG_H
#define ASTIGSTATSDLG_H
#include <QDialog>
#include "wavefront.h"
#include <QVector>
#include <QMap>
#include <QPointF>
#include <qwt_plot_item.h>
class QwtPlot;
class QwtPlotPicker;
class Zoomer;
class QTextEdit;
class QVBoxLayout;
class QHBoxLayout;
namespace Ui {
class astigStatsDlg;
}
class astigStatsDlg : public QDialog
{
Q_OBJECT
public:
explicit astigStatsDlg( QVector<wavefront *> wavefronts,QWidget *parent = 0);
~astigStatsDlg();
void plot();
private slots:
void on_zernikePB_pressed();
void on_bestFitCB_clicked(bool checked);
void on_distribution_clicked();
void on_sdCB_clicked();
void on_help_clicked();
void on_savePdf();
void on_clearPb_clicked();
void on_onlyAverages_clicked();
void showItem(QVariant item, bool on, int ndx);
void on_savePB_clicked();
void showSamplesChanged(bool);
void runningNChanged(int);
void usePolar(bool flag);
private:
int mndx;
QwtPlot *dplot;
QVector<QStringList> m_zerns;
Zoomer *zoomer;
Ui::astigStatsDlg *ui;
QVector<wavefront*> m_wavefronts;
QwtPlot *avgPlot(cv::Mat x, cv::Mat y);
QTextEdit *editor;
QwtPlotPicker *d_picker;
bool PDFMode;
QWidget *distributionWindow;
QVector<QPointF> points;
int runningAvgN;
bool showSamples;
QVBoxLayout *layout;
QHBoxLayout *toolLayout;
bool m_usePolar;
};
#endif // ASTIGSTATSDLG_H