2018-12-29 00:46:47 +08:00
|
|
|
#ifndef TestWidgetFunctionPlots_H
|
|
|
|
#define TestWidgetFunctionPlots_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"
|
|
|
|
#include "jkqtplotter/jkqtpgraphsgeometric.h"
|
|
|
|
#include "jkqtplotter/jkqtpgraphsimage.h"
|
|
|
|
#include "jkqtplotter/jkqtpelementsoverlay.h"
|
|
|
|
#include "jkqtplotter/jkqtpgraphsparsedfunction.h"
|
|
|
|
#include "jkqtplotter/jkqtpbaseelements.h"
|
|
|
|
#include "jkqtplottergui/jkqtpgraphsmodel.h"
|
|
|
|
#include "jkqtplottergui/jkqtpcomboboxes.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 TestWidgetFunctionPlots : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit TestWidgetFunctionPlots(QWidget *parent = 0);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
|
|
void setPFuncStyle();
|
|
|
|
void setPFuncMinPoint(int value);
|
|
|
|
void setPFuncMaxRefine(int value);
|
|
|
|
void setPFunc(const QString& expression);
|
|
|
|
void setPFuncE(const QString& expression);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2019-01-20 17:49:29 +08:00
|
|
|
JKQTPXParsedFunctionLineGraph* pfunc;
|
2019-01-20 23:15:10 +08:00
|
|
|
JKQTPlotter* plotFuncPlt;
|
2019-01-20 17:49:29 +08:00
|
|
|
JKQTPErrorPlotstyleComboBox* pfuncErrorStyle;
|
2018-12-29 00:46:47 +08:00
|
|
|
QCheckBox* chkPFuncDrawSamples;
|
|
|
|
QCheckBox* chkPFuncDrawLine;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TestWidgetFunctionPlots_H
|