2025-08-20 23:06:28 +08:00
|
|
|
#ifndef P601_TRANSPORTPAGE_H
|
|
|
|
|
#define P601_TRANSPORTPAGE_H
|
|
|
|
|
|
2025-10-10 17:44:10 +08:00
|
|
|
|
|
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
#include <QWidget>
|
2025-10-10 17:44:10 +08:00
|
|
|
#include <QProgressBar>
|
|
|
|
|
#include <PublicFunctions/CurvePlotWidget.h>
|
|
|
|
|
#include <PublicFunctions/ObjLoader.h>
|
|
|
|
|
#include <QLCDNumber>
|
2025-08-20 23:06:28 +08:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class P601_TransportPage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class P601_TransportPage : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit P601_TransportPage(QWidget *parent = nullptr);
|
|
|
|
|
~P601_TransportPage();
|
2025-10-10 17:44:10 +08:00
|
|
|
void WinInit();
|
|
|
|
|
void SetProgressBar(QProgressBar *PB,const uint16_t Value,const uint8_t ColorIndex,const QStringList Color = {});
|
|
|
|
|
void SetProgressBar(QProgressBar *PB, QLCDNumber *LCD, const QString NodeGroup,QString NodeLCD,const QStringList Color = {});
|
|
|
|
|
void SetPos(const float Zoom,QVector3D Move,const QVector3D Pos);
|
|
|
|
|
private slots:
|
|
|
|
|
void UIRefreshTimeOut();
|
|
|
|
|
void TrailRefreshTimeOut();
|
|
|
|
|
void Show3D();
|
|
|
|
|
void RotateDev();
|
|
|
|
|
signals:
|
|
|
|
|
void preprocessFinished(QVector3D center, float radius);
|
|
|
|
|
void loadModelRequest(const QString& devName, const QString& filePath, QVector3D center, float radius);
|
2025-08-20 23:06:28 +08:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::P601_TransportPage *ui;
|
2025-10-10 17:44:10 +08:00
|
|
|
|
|
|
|
|
QStringList PercentageText;
|
|
|
|
|
QStringList TrueColor;
|
|
|
|
|
QStringList FalseColor;
|
|
|
|
|
QString DevName3D = "";
|
|
|
|
|
uint16_t mAngle = 0;
|
|
|
|
|
ObjLoader *mObjLoader;
|
|
|
|
|
|
|
|
|
|
QThread* m_workerThread;
|
|
|
|
|
ObjLoader* m_workerLoader;
|
|
|
|
|
QVector3D m_modelCenter;
|
|
|
|
|
float m_modelRadius;
|
|
|
|
|
QString m_currentDevName;
|
|
|
|
|
QString m_currentFilePath;
|
|
|
|
|
QVector3D m_currentPosition;
|
2025-08-20 23:06:28 +08:00
|
|
|
};
|
|
|
|
|
|
2025-10-10 17:44:10 +08:00
|
|
|
|
|
|
|
|
#endif // P601_TransportPage_H
|