mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 18:11:38 +08:00
33 lines
778 B
C++
33 lines
778 B
C++
#ifndef CONTOURPLOTANIMATOR_H
|
|
#define CONTOURPLOTANIMATOR_H
|
|
|
|
#include <QObject>
|
|
#include <QTimer>
|
|
#include <QElapsedTimer>
|
|
#include <cmath>
|
|
#include "jkqtplotter/jkqtplotter.h"
|
|
|
|
|
|
class ContourPlotAnimator: public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
ContourPlotAnimator(JKQTPDatastore* ds_, JKQTPlotter* pplot_, int NX_, int NY_,double w_, double h_, double dx_, size_t cPotential_);
|
|
|
|
void start(int delayMS);
|
|
protected Q_SLOTS:
|
|
void step();
|
|
protected:
|
|
double angle;
|
|
JKQTPDatastore* ds;
|
|
JKQTPlotter* pplot;
|
|
int NX;
|
|
int NY;
|
|
double w;
|
|
double h;
|
|
double dx;
|
|
size_t cPotential;
|
|
QElapsedTimer timerFR;
|
|
};
|
|
|
|
#endif // CONTOURPLOTANIMATOR_H
|