SkyPulse UAV V0.1
Loading...
Searching...
No Matches
Mahony_Plot.h
Go to the documentation of this file.
1#ifndef MAHONY_PLOT_H
2#define MAHONY_PLOT_H
3
4#include <QObject>
5#include <QFutureWatcher>
6// #include <QMutex>
7#include "qcustomplot.h"
8
9class Mahony_Plot : public QObject
10{
11 Q_OBJECT
12
13public:
14 explicit Mahony_Plot(QObject *parent = nullptr);
16
17private:
18 QFutureWatcher<void> watcher;
19 QAtomicInt _stop;
20 void plotThreadParameterInitial(); // 线程参数初始化
21
22public slots:
23 void plotThreadDataReceiver(uint, uint, uint);
24 void startPlotting();
25 void stopPlotting();
26
27signals:
29 void requestData(uint x, uint y, uint z); // 修改信号,携带绘图数据
30
31};
32
33#endif // MAHONY_PLOT_H
Definition Mahony_Plot.h:10
Mahony_Plot(QObject *parent=nullptr)
Definition Mahony_Plot.cpp:5
void finishedPlotting()
void plotThreadDataReceiver(uint, uint, uint)
Definition Mahony_Plot.cpp:42
~Mahony_Plot()
Definition Mahony_Plot.cpp:10
void startPlotting()
Definition Mahony_Plot.cpp:17
void stopPlotting()
Definition Mahony_Plot.cpp:32
void requestData(uint x, uint y, uint z)