-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
32 lines (26 loc) · 755 Bytes
/
Copy pathmainwindow.cpp
File metadata and controls
32 lines (26 loc) · 755 Bytes
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
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_simulate_Button_clicked()
{
int truePointCoordX = ui->x_input->text().toInt();
int truePointCoordY = ui->y_input->text().toInt();
int baseL = ui->L_input->text().toInt();
int maxAngleError = ui->e_input->text().toInt();
simulationModel = new Model(truePointCoordX, truePointCoordY, baseL, maxAngleError);
timer = new QTimer(this);
connect(timer, &QTimer::timeout, this, MainWindow::Iteration(simulationModel));
//timer->start(100);
}
void MainWindow::Iteration(Model* model)
{
}