更新遥控器画面
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
#ifndef P601_TRANSPORTPAGE_H
|
||||
#define P601_TRANSPORTPAGE_H
|
||||
|
||||
|
||||
|
||||
#include <QWidget>
|
||||
#include <QProgressBar>
|
||||
#include <PublicFunctions/CurvePlotWidget.h>
|
||||
#include <PublicFunctions/ObjLoader.h>
|
||||
#include <QLCDNumber>
|
||||
|
||||
namespace Ui {
|
||||
class P601_TransportPage;
|
||||
@@ -14,9 +20,37 @@ class P601_TransportPage : public QWidget
|
||||
public:
|
||||
explicit P601_TransportPage(QWidget *parent = nullptr);
|
||||
~P601_TransportPage();
|
||||
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);
|
||||
|
||||
private:
|
||||
Ui::P601_TransportPage *ui;
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
#endif // P601_TRANSPORTPAGE_H
|
||||
|
||||
#endif // P601_TransportPage_H
|
||||
|
||||
Reference in New Issue
Block a user