2025-11-19 00:23:09 +08:00
|
|
|
#ifndef DIALOGALGOARG_H
|
|
|
|
|
#define DIALOGALGOARG_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QString>
|
2025-11-26 22:44:38 +08:00
|
|
|
#include "ConfigManager.h"
|
2025-11-19 00:23:09 +08:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class DialogAlgoarg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class DialogAlgoarg : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2025-11-26 22:44:38 +08:00
|
|
|
explicit DialogAlgoarg(ConfigManager* configManager, QWidget *parent = nullptr);
|
2025-11-19 00:23:09 +08:00
|
|
|
~DialogAlgoarg();
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void on_btn_camer_ok_clicked();
|
|
|
|
|
void on_btn_camer_cancel_clicked();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void LoadConfigToUI();
|
|
|
|
|
bool SaveConfigFromUI();
|
|
|
|
|
|
|
|
|
|
// 加载各个参数组到 UI
|
|
|
|
|
void LoadParticleSizeParamToUI(const VrParticleSizeParam& param);
|
|
|
|
|
void LoadFilterParamToUI(const VrOutlierFilterParam& param);
|
|
|
|
|
void LoadCornerParamToUI(const VrCornerParam& param);
|
|
|
|
|
void LoadGrowParamToUI(const VrTreeGrowParam& param);
|
|
|
|
|
|
|
|
|
|
// 从 UI 保存各个参数组
|
|
|
|
|
bool SaveParticleSizeParamFromUI(VrParticleSizeParam& param);
|
|
|
|
|
bool SaveFilterParamFromUI(VrOutlierFilterParam& param);
|
|
|
|
|
bool SaveCornerParamFromUI(VrCornerParam& param);
|
|
|
|
|
bool SaveGrowParamFromUI(VrTreeGrowParam& param);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::DialogAlgoarg *ui;
|
2025-11-26 22:44:38 +08:00
|
|
|
ConfigManager* m_pConfigManager;
|
2025-11-19 00:23:09 +08:00
|
|
|
QString m_configFilePath;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // DIALOGALGOARG_H
|