2018-12-29 00:46:47 +08:00
|
|
|
#ifndef TestWidgetGraphs_H
|
|
|
|
#define TestWidgetGraphs_H
|
|
|
|
#include <QElapsedTimer>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <QImage>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QTabWidget>
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include "jkqtplotter/jkqtplotter.h"
|
2019-06-20 22:06:31 +08:00
|
|
|
#include "jkqtplotter/graphs/jkqtpgeometric.h"
|
2018-12-29 00:46:47 +08:00
|
|
|
#include "jkqtplotter/jkqtpbaseelements.h"
|
2019-06-20 21:18:58 +08:00
|
|
|
#include "jkqtplotter/gui/jkqtpgraphsmodel.h"
|
2019-05-30 04:40:02 +08:00
|
|
|
#include "jkqtplotter/jkqtptools.h"
|
2018-12-29 00:46:47 +08:00
|
|
|
|
|
|
|
#define N1 200
|
|
|
|
#define N2 50
|
|
|
|
#define N3 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestWidgetGraphs : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-06-21 21:46:53 +08:00
|
|
|
explicit TestWidgetGraphs(QWidget *parent = nullptr);
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2023-07-22 20:26:02 +08:00
|
|
|
Q_SIGNALS:
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2023-07-22 20:26:02 +08:00
|
|
|
protected Q_SLOTS:
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2019-05-06 01:31:20 +08:00
|
|
|
void setErrorLineStyle(int index);
|
2018-12-29 00:46:47 +08:00
|
|
|
void setESSymbol(int index);
|
|
|
|
|
|
|
|
|
|
|
|
void setSortOrder2(int index);
|
|
|
|
|
2019-01-20 17:49:29 +08:00
|
|
|
void setKeyLayout2(JKQTPKeyLayout layout);
|
|
|
|
void setKeyPos2(JKQTPKeyPosition layout);
|
2018-12-29 00:46:47 +08:00
|
|
|
|
|
|
|
protected:
|
2019-06-21 21:46:53 +08:00
|
|
|
double x1[N1], x2[N2], x2r[N1]/*, x3[N3]*/;
|
|
|
|
double y11[N1], y12[N1], y13[N1], y21[N1], y21r[N1], y21re[N1], y22[N1], y23[N1], y24[N1];
|
2018-12-29 00:46:47 +08:00
|
|
|
double xbox[N3], ymed[N3], ymean[N3], ymin[N3], ymax[N3], yp25[N3], yp75[N3];
|
|
|
|
double b1[N3], b2[N3], b3[N3];
|
|
|
|
|
|
|
|
|
2019-01-20 23:15:10 +08:00
|
|
|
JKQTPlotter* plot;
|
|
|
|
JKQTPlotter* plotLOG;
|
|
|
|
JKQTPlotter* plotBot;
|
|
|
|
JKQTPlotter* plotBot2;
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2019-01-20 17:49:29 +08:00
|
|
|
JKQTPPlotElement* plteErrors;
|
|
|
|
JKQTPPlotElement* plteSymbols;
|
|
|
|
JKQTPXYLineErrorGraph* pltePlot2;
|
2018-12-29 00:46:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TestWidgetGraphs_H
|