-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
54 lines (43 loc) · 1.69 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include<QGraphicsScene>
#include<QGraphicsItem>
#include<QGraphicsView>
#include<QDebug>
#include<QPen>
#include"mesh.h"
#include "ray.h"
#include "wall.h"
#include <array>
#include<complex>
using namespace std;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
QGraphicsScene *scene;
private slots:
void makePathLossPlots(QVector<qreal> dist_vec, QVector<qreal> Prx_vec);
void makeCellRangePlot(qreal slope, qreal intercept, qreal sigma);
void makeSpectrumPlot(QVector<qreal> freqs, QVector<qreal> attenuations, qreal speed);
void makeImpulseResponse(QVector<qreal> tau_vec, QVector<complex<qreal>> h_vec);
void makeTDLImpulseResponses(QVector<qreal> tau_vec, QVector<complex<qreal>> alpha_vec);
private:
Ui::MainWindow *ui;
//qreal imageMethodColorMap(Mesh TX, Mesh RX, QList<Wall> walls, qreal scaleX, qreal scaleY);
//qreal imageMethod2(Mesh TX, Mesh RX, QList<Wall> walls, qreal scaleX, qreal scaleY);
complex<qreal> imageMethod5G(Mesh TX, Mesh RX, QList<Wall> walls, QList<Wall> diffr, qreal scaleX, qreal scaleY, QVector<qreal> RX_speed_vec);
complex<qreal> imageMethod5GColorMap(Mesh TX, Mesh RX, QList<Wall> walls, QList<Wall> diffr);
void draw_ray(QPointF A, QPointF B, int n_refl, qreal scaleX, qreal scaleY);
qreal reflexion_coef(QPointF A, QPointF B, Wall wall);
qreal transmission_coef(QPointF A, QPointF B, QList<Wall> walls);
QPointF mirrorPoint(QPointF P, QLineF d);
complex<qreal> phase(qreal beta, qreal d);
};
#endif // MAINWINDOW_H