-
Notifications
You must be signed in to change notification settings - Fork 22
/
ResponseWidget.h
55 lines (42 loc) · 1.24 KB
/
ResponseWidget.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
#ifndef RESPONSEWIDGET_H
#define RESPONSEWIDGET_H
#include <QWidget>
#include <QVector>
class QCustomPlot;
class QLineEdit;
class QCPGraph;
class QCPCurve;
class QCPItemTracer;
class MainWindow;
class QSpinBox;
//
// a widget to plot the response,
// NOTE to cut down on memory currently the widget does not keep data, requires a call back to main window
// THIS is proving problematic to say the least! .. will redo
//
class ResponseWidget : public QWidget
{
Q_OBJECT
public:
explicit ResponseWidget(MainWindow *main, int mainWindowItem, QString &label, QString &xAxis, QString &yAxis, QWidget *parent = 0);
~ResponseWidget();
int getItem();
void setItem(int);
void setData(QVector<double> &data, QVector<double> &time, int numSteps, double dt, int index);
void setData(QVector<double> &data, QVector<double> &x, int numSteps, int index);
signals:
public slots:
void itemEditChanged(int);
private:
QCustomPlot *thePlot;
QSpinBox *theSpinBox;
int theItem; // floor or story #
// 3 variables neeeded for call back .. need to go away!
int mainWindowItem;
MainWindow *main;
bool dataSET;
QCPGraph *graph;
QCPItemTracer *groupTracer;
QCPCurve *curve;
};
#endif // NODERESPONSEWIDGET_H