-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainwindow.h
More file actions
35 lines (29 loc) · 1.2 KB
/
mainwindow.h
File metadata and controls
35 lines (29 loc) · 1.2 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QGraphicsScene>
#include "air_space_data.h"
#include "vec3D.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
void drawPoint(Vec3D point, QGraphicsScene* scene, int windowHeight, int index);
void drawLine(Vec3D p1, Vec3D p2, QGraphicsScene* scene, int windowHeight, QColor color = Qt::black);
void drawCircle(Pvo pvo, QGraphicsScene* scene, int windowHeight);
void drawPathWithPVO(const Vec3D& p1, const Vec3D& p2, const AirSpace& airspace,
QGraphicsScene* scene, int windowHeight);
void drawArc(const Vec3D& center, double radius, const Vec3D& start,
const Vec3D& end, QGraphicsScene* scene, int windowHeight);
void drawPolygon(HighReliefZone highreliefzone, QGraphicsScene* scene, int windowHeight);
void drawPathWithObstacles(const Vec3D& p1, const Vec3D& p2, const AirSpace& airspace,
QGraphicsScene* scene, int windowHeight, QColor color = Qt::black);
};
#endif