2018-11-18 21:24:29 +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>
|
2018-11-29 06:10:14 +08:00
|
|
|
#include "jkqtplotter/jkqtplotter.h"
|
2018-12-19 00:13:18 +08:00
|
|
|
#include "jkqtplotter/jkqtpgraphsgeometric.h"
|
|
|
|
#include "jkqtplotter/jkqtpgraphsimage.h"
|
|
|
|
#include "jkqtplotter/jkqtpelementsoverlay.h"
|
|
|
|
#include "jkqtplotter/jkqtpgraphsparsedfunction.h"
|
2018-11-29 06:10:14 +08:00
|
|
|
#include "jkqtplotter/jkqtpbaseelements.h"
|
2018-12-19 00:13:18 +08:00
|
|
|
#include "jkqtplottergui/jkqtpgraphsmodel.h"
|
2018-11-29 06:10:14 +08:00
|
|
|
#include "jkqtplottertools/jkqtptools.h"
|
2018-11-18 21:24:29 +08:00
|
|
|
|
|
|
|
#define N1 200
|
|
|
|
#define N2 50
|
|
|
|
#define N3 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestWidgetGraphs : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit TestWidgetGraphs(QWidget *parent = 0);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void moveovl();
|
|
|
|
|
|
|
|
void setErrorStyle(int index);
|
|
|
|
void setESSymbol(int index);
|
|
|
|
|
|
|
|
|
|
|
|
void setSortOrder2(int index);
|
|
|
|
|
|
|
|
void setKeyLayout2(JKQTPkeyLayout layout);
|
|
|
|
void setKeyPos2(JKQTPkeyPosition layout);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
double x1[N1], x2[N2], x2r[N2]/*, x3[N3]*/;
|
|
|
|
double y11[N1], y12[N1], y13[N1], y21[N2], y21r[N2], y21re[N2], y22[N2], y23[N2], y24[N2];
|
|
|
|
double xbox[N3], ymed[N3], ymean[N3], ymin[N3], ymax[N3], yp25[N3], yp75[N3];
|
|
|
|
double b1[N3], b2[N3], b3[N3];
|
|
|
|
|
|
|
|
|
|
|
|
JKQTPoverlayVerticalLine* ovl1;
|
|
|
|
JKQtPlotter* plot;
|
|
|
|
JKQtPlotter* plotLOG;
|
|
|
|
JKQtPlotter* plotBot;
|
|
|
|
JKQtPlotter* plotBot2;
|
|
|
|
|
|
|
|
JKQTPgraph* plteErrors;
|
|
|
|
JKQTPgraph* plteSymbols;
|
|
|
|
JKQTPxyLineErrorGraph* pltePlot2;
|
|
|
|
|
|
|
|
|
|
|
|
int ovlCnt;
|
|
|
|
QElapsedTimer ovlTime;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TestWidgetGraphs_H
|