refactor: Scan process.

This commit is contained in:
sunwen
2024-05-24 13:49:54 +08:00
parent 9c72bee9f7
commit 370e7326bc
18 changed files with 921 additions and 74 deletions

View File

@@ -0,0 +1,41 @@
#ifndef SCANPROCESSSEQUENCE_H
#define SCANPROCESSSEQUENCE_H
#include <QObject>
#include <QStack>
enum ScanPosition
{
Left = 0, Right
};
class ScanProcessSequence : public QObject
{
Q_OBJECT
public:
static ScanProcessSequence* getInstance();
void pushPosition(ScanPosition aPosition);
ScanPosition popPosition();
ScanPosition topPosition();
int getScanPositionSize();
void clear();
signals:
void startAutoLocate();
void stopAutoLocate();
void quitAutoLocate();
void startFullScan();
void fullScanDataExport();
void autoLocateXYUpdated(int aX, int aY);
void autoLocateZUpdated(int aZ);
private slots:
void updateAutoLocatePosition(int aX, int aY, int aZ);
private:
ScanProcessSequence(QObject* aParent = nullptr);
QStack<ScanPosition> mScanProtocol;
};
#endif // SCANPROCESSSEQUENCE_H