JKQtPlotter/examples/simpletest_contourplot/contourplotanimator.h
jkriege2 5a4a778faf improved contour plots + added example for contour plots
split contour plot into two variant, one for C-array-data and one for image column data
improved doxygen annotation
2019-05-19 15:22:56 +02:00

36 lines
835 B
C++

#ifndef CONTOURPLOTANIMATOR_H
#define CONTOURPLOTANIMATOR_H
#include <QObject>
#include <QTimer>
#include <QElapsedTimer>
#include <cmath>
#include "jkqtplotter/jkqtplotter.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
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 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