🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
UiSweepStudy.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstAnalyzer/SweepStudy.hpp"
25#include <QWidget>
26
27class QTabWidget;
28class QSplitter;
29class QStackedWidget;
30class QLabel;
31class QPushButton;
32
33AST_NAMESPACE_BEGIN
34
35class SweepStudy;
36class UiSweepVariableList;
37class UiSweepOutputList;
38
40class AST_GUI_API UiSweepStudy : public QWidget
41{
42 Q_OBJECT
43public:
44 explicit UiSweepStudy(QWidget* parent = nullptr);
45
47 void setAnalyzer(SweepStudy* analyzer);
48
50 SweepStudy* analyzer() const { return analyzer_.get(); }
51
53 void refreshUi();
54
55private slots:
56 void onExecute();
57
58private:
59 void setupUi();
60 void rebuildCommandEditor();
61
62 WeakPtr<SweepStudy> analyzer_;
63
64 QTabWidget* tabWidget_;
65
66 // 变量与输出 Tab(同页左右分栏)
67 QSplitter* studySplitter_;
68 UiSweepVariableList* varList_;
69 UiSweepOutputList* outputList_;
70
71 // 任务模型 Tab
72 QStackedWidget* commandStack_;
73 QLabel* placeholderLabel_;
74
75 // 执行按钮
76 QPushButton* executeBtn_;
77};
78
79AST_NAMESPACE_END
遍历搜索分析器(参数化扫描),对变量进行嵌套循环遍历并执行仿真命令
定义 SweepStudy.hpp:92
扫参输出表格,以表格行内编辑方式管理 SweepOutput 列表
定义 UiSweepOutputList.hpp:36
SweepStudy 编辑界面
定义 UiSweepStudy.hpp:41
SweepStudy * analyzer() const
获取当前绑定的 SweepStudy
定义 UiSweepStudy.hpp:50
扫参变量表格,以表格行内编辑方式管理 SweepVariable 列表
定义 UiSweepVariableList.hpp:36
弱引用指针
定义 WeakPtr.hpp:35