-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.h
More file actions
41 lines (32 loc) · 747 Bytes
/
controller.h
File metadata and controls
41 lines (32 loc) · 747 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
33
34
35
36
37
38
39
40
41
#pragma once
#include "tablemodel.h"
#include <QApplication>
#include <QClipboard>
#include <QMimeData>
#include <map>
class QLineSeries;
class Controller : public QObject {
Q_OBJECT
QObject *m_chart;
TableModel *m_init;
TableModel *m_model;
Eigen::MatrixXd m_conc;
Eigen::MatrixXd m_matrix;
std::vector<int> m_dim;
std::vector<double> m_result;
std::vector<double> m_x;
void calculate();
public:
explicit Controller();
virtual ~Controller() override;
void setChart(QObject *chart);
TableModel *init();
TableModel *model();
Q_INVOKABLE std::vector<int> dim();
Q_INVOKABLE std::vector<double> x();
Q_INVOKABLE std::vector<double> result();
signals:
void calculated();
public slots:
void paste();
};