refactor: Scan process.
This commit is contained in:
@@ -99,15 +99,20 @@ private:
|
||||
void stopPreviewScan();
|
||||
void getDeviceTemperature();
|
||||
void getScanProcess();
|
||||
void getAutoLocatePosition();
|
||||
bool getCEStatus();
|
||||
bool startCEScan();
|
||||
void startTransfer();
|
||||
void initEmptyScanMeasurementID();
|
||||
void controlDrainage(const QString& aCode);
|
||||
void checkInitStatus();
|
||||
bool startAutoLocate();
|
||||
void stopAutoLocate();
|
||||
void initGUI(bool aIsInitSucceed);
|
||||
void checkDataQuality();
|
||||
|
||||
void processScanProgress(const QString& aProgress);
|
||||
void processAutoLocatePosition(const QString& aProgress);
|
||||
void processInitializeProgress(const QString& aProgress);
|
||||
void prepareFinishScan(bool isNormalFinish, const QString& aReason = "");
|
||||
void prepareFinishInitialize();
|
||||
@@ -155,6 +160,10 @@ signals:
|
||||
void responseStopTransfer(const QString& aResponse);
|
||||
void responseShutDown(const QString& aResponse);
|
||||
void responseCheckInitStatus(const QString& aResponse);
|
||||
void responseStartAutoLocate(const QString& aResponse);
|
||||
void responseStopAutoLocate(const QString& aResponse);
|
||||
void responseGetAutoLocatePosition(const QString& aResponse);
|
||||
void responseCheckDataQuality(const QString& aResponse);
|
||||
//Recon
|
||||
void createEmptyScanToRecon(const QString& aScanID, const QString& aPath);
|
||||
void createScanToRecon(const QString& aScanID, const QString& aPatientID, const QString& aReferenceID, const QString& aPath);
|
||||
@@ -166,6 +175,9 @@ signals:
|
||||
void transferStatusUpdated();
|
||||
void startPreviewScanResult(bool aIsSucessful);
|
||||
void startPumpControlResult(bool aIsSucessful);
|
||||
void startAutoLocateResult(bool aIsSucessful);
|
||||
void updateAutoLocatePosition(int aX, int aY, int aZ);
|
||||
void autolocatePositionEffective();
|
||||
void shutdownDmsSended();
|
||||
void shutdownDmsFailed();
|
||||
|
||||
@@ -174,13 +186,16 @@ private:
|
||||
int mTemperatureTimer = -1;
|
||||
int mScanProgressTimer = -1;
|
||||
int mCheckInitStatusTimer = -1;
|
||||
int mGetAutoLocatePositionTimer = -1;
|
||||
int mTransferProgress = 0;
|
||||
int mEffectivePositionCount = 0;
|
||||
bool mIsEmptyScan = false;
|
||||
bool mIsTransferEmptyScan = false;
|
||||
bool mIsScanning = false;
|
||||
bool mIsTransfering = false;
|
||||
bool mIsPreviewing = false;
|
||||
bool mIsInitializing = false;
|
||||
bool mIsAutoLocating = false;
|
||||
|
||||
QString mCurrentScanMeasurementID = "";
|
||||
QString mCurrentEmptyMeasurementID = "";
|
||||
@@ -205,6 +220,9 @@ private:
|
||||
DmsSyncAction* mSetSimulatorModeAction = nullptr;
|
||||
DmsSyncAction* mSetHeartBeatAction = nullptr;
|
||||
DmsSyncAction* mCheckInitStatusAction = nullptr;
|
||||
DmsSyncAction* mStartAutoLocateAction = nullptr;
|
||||
DmsSyncAction* mStopAutoLocateAction = nullptr;
|
||||
DmsSyncAction* mCheckDataQualityAction = nullptr;
|
||||
|
||||
DmsAsyncAction* mGetDeviceTemperatureAction = nullptr;
|
||||
DmsAsyncAction* mGetScanProgressAction = nullptr;
|
||||
@@ -212,6 +230,7 @@ private:
|
||||
DmsAsyncAction* mStopTransferAction = nullptr;
|
||||
DmsAsyncAction* mShutDownAction = nullptr;
|
||||
DmsAsyncAction* mPumpControlAction = nullptr;
|
||||
DmsAsyncAction* mGetAutoLocatePositionAction = nullptr;
|
||||
|
||||
InfoReceiveWorker* mInfoReceiveWorker = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user