-
Notifications
You must be signed in to change notification settings - Fork 0
/
resultwindow.h
63 lines (56 loc) · 2.06 KB
/
resultwindow.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
55
56
57
58
59
60
61
62
63
#ifndef RESULTWINDOW_H
#define RESULTWINDOW_H
#include <QWidget>
#include "Tables.h"
class QTableWidget;
class QLabel;
class ResultWindow: public QWidget
{
Q_OBJECT
public:
ResultWindow(QWidget *parent = nullptr);
~ResultWindow() = default;
signals:
void returnBack();
public slots:
void calcResuluts(const Params& params);
private slots:
void returnToTables();
void showAllValuesTables();
void showTables();
void showGraphics();
void openPointWindow();
private:
QVector<double> _delta;
QVector<QVector<double>> _A;
QVector<double> _b;
QVector<QVector<double>> _U;
QVector<QVector<double>> _u;
QVector<QVector<double>> _N;
QVector<QVector<double>> _sigma;
QVector<double> _startSigma;
QLineEdit* _calcLine;
Params _params;
void calcMatrixDelta(const Params& params);
void calcMatrixA(const Params& params);
void calcMatrixB(const Params& params);
void calcMatrixU(const Params& params);
void calcMatrixu_N(const Params& params);
void calcMatrixes(const Params& params);
void nullA(const Params& params);
double getDeterminant(const QVector<QVector<double>> vect);
int gauss(QVector<QVector<double>> a, QVector<double> & ans);
int getRodNumber(const double& value, const double& allRodsL);
void defineRod(QTableWidget* tabN, QTableWidget* tabU, QTableWidget* tabS);
void clearVectors();
void checkSigmaCells(QTableWidget* table);
void setParams(const Params& params);
void calcOneColumnTables(QTableWidget* tabN, QTableWidget* tabU, QTableWidget* tabS, const int& rodNumber, const double& x);
void calcTwoColumnsTables(QTableWidget* tabN, QTableWidget* tabU, QTableWidget* tabS, const int& rodNumber, const double& x);
void makeTables(QDialog* dialog);
void makeTablesAllValues(QDialog* dialog);
void fill_NUS_tables(QTableWidget* tabN, QTableWidget* tabU, QTableWidget* tabS);
void fill_NUSAllValues_tables(QTableWidget* tableN);
bool checkXValid();
};
#endif // RESULTWINDOW_H