55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
#ifndef P501_LOADERPAGE_H
|
|
#define P501_LOADERPAGE_H
|
|
|
|
#include <QWidget>
|
|
#include <QProgressBar>
|
|
#include <PublicFunctions/CurvePlotWidget.h>
|
|
#include <PublicFunctions/ObjLoader.h>
|
|
#include <QLCDNumber>
|
|
|
|
namespace Ui {
|
|
class P501_LoaderPage;
|
|
}
|
|
|
|
class P501_LoaderPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit P501_LoaderPage(QWidget *parent = nullptr);
|
|
~P501_LoaderPage();
|
|
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::P501_LoaderPage *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 // P501_LOADERPAGE_H
|