-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
40 lines (32 loc) · 867 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDebug>
#include <qcustomplot.h>
#include "jahm/jahm.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
// basis: alpha=-0.01; a=12000; Ms=8e5; k=3000; c=0.2;
double m_alpha = -0.01;
uint32_t m_a = 12000;
uint32_t m_ms = 8e5;
uint32_t m_k = 3000;
double m_c = 0.2;
Ui::MainWindow *ui;
QCustomPlot *m_graphic; // Declare QCustomPlot object
QCPCurve *m_vertical_line; // Declare object for vertical line
QCPCurve *m_hyst_curve;
ja::JAHM *m_jamodel;
private slots:
void slotMousePress(QMouseEvent * event);
void slotMouseMove(QMouseEvent * event);
};
#endif // MAINWINDOW_H