-
Notifications
You must be signed in to change notification settings - Fork 0
/
psf_dialog.h
47 lines (35 loc) · 986 Bytes
/
psf_dialog.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
#ifndef PSF_DIALOG_H
#define PSF_DIALOG_H
#include <QObject>
#include <QWidget>
#include <QString>
#include <QRectF>
#include <QPushButton>
#include <QGroupBox>
#include <QLabel>
#include "qcustomplot.h"
#include "psf_defs.h"
class psf_dialog : public QDialog
{
Q_OBJECT
public:
explicit psf_dialog(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
psf_dialog(QString fits_filename, QRectF region, QWidget *parent = nullptr, Qt::WindowFlags f = 0);
void plot_psf(QString fits_filename, QRectF region);
void getFitParams(moffat2d_params);
signals:
void psfComputed(moffat2d_params pars);
private:
void setupUi();
QString formatResults(moffat2d_params fit_pars);
moffat2d_params fit_pars;
QCustomPlot *customPlot;
QCPGraph *x_graph_data;
QCPGraph *y_graph_data;
QCPGraph *x_graph_fit;
QCPGraph *y_graph_fit;
QGroupBox *result_gbox;
QLabel *result_label;
QPushButton *close_button;
};
#endif // PSF_DIALOG_H