Go to the documentation of this file.00001
00022 #ifndef DGVANIMATEDSCAN_H
00023 #define DGVANIMATEDSCAN_H
00024
00025 #include <qwt_plot.h>
00026
00027 #include "DGVAliases.h"
00028
00036 class DGV_EXPORT DGVAnimatedScan : public QwtPlot
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 DGVAnimatedScan(QWidget *parent = 0);
00042 DGVAnimatedScan(Array<imageType,2> &data, QString scanName, QWidget *parent = 0);
00043 virtual ~DGVAnimatedScan();
00044
00049 QString strippedName();
00054 QString strippedNamePrefix();
00055
00056 public slots:
00057 void setTimerInterval(double interval);
00058 void saveFrame(QString filename);
00059
00060 protected:
00061 virtual void timerEvent(QTimerEvent *e);
00062
00063 private:
00064 int d_interval;
00065 int d_timerId;
00066
00067 int plotRow;
00068 int frameNo;
00069 QString name;
00070
00071
00072 Array<imageType,1> xValues;
00073 Array<imageType,1> yValues;
00074 Array<imageType,2> *scanData;
00075
00076 void alignScales();
00077 void setupCounter();
00078 void newValues();
00079 };
00080
00081 #endif // DGVANIMATEDSCAN_H