forked from githubdoe/DFTFringe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastigpolargraph.h
More file actions
55 lines (46 loc) · 1.24 KB
/
astigpolargraph.h
File metadata and controls
55 lines (46 loc) · 1.24 KB
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
#ifndef ASTIGPOLARGRAPH_H
#define ASTIGPOLARGRAPH_H
#include <QDialog>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QLineSeries>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QAreaSeries>
#include <QtCharts/QValueAxis>
#include <QtCharts/QPolarChart>
#include "wavefront.h"
#include <QTableWidgetItem>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// keep compatibility with Qt5
QT_CHARTS_USE_NAMESPACE
#endif
namespace Ui {
class astigPolargraph;
}
class astigSample{
public:
QString m_name;
double m_xastig;
double m_yastig;
astigSample(const QString &name, double xastig, double yastig): m_name(name), m_xastig(xastig), m_yastig(yastig){};
};
class astigPolargraph : public QDialog
{
Q_OBJECT
public:
explicit astigPolargraph(QList<astigSample> list,QWidget *parent = nullptr);
~astigPolargraph();
signals:
void waveSeleted(QString);
private slots:
void tooltip(QPointF point, bool state);
void clicked(QPointF point);
void on_waveFrontTable_itemClicked(QTableWidgetItem *item);
private:
int findClosestPoint(const QPointF clickedPoint );
Ui::astigPolargraph *ui;
QPolarChart *chart;
QList<astigSample> m_list;
public:
void hideHoverHelp();
};
#endif // ASTIGPOLARGRAPH_H