🛰️航天仿真算法库 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 UiSweepStudy(const UiSweepStudy&) = delete;
46 UiSweepStudy& operator=(const UiSweepStudy&) = delete;
47
49 void setAnalyzer(SweepStudy* analyzer);
50
52 SweepStudy* analyzer() const { return analyzer_.get(); }
53
55 void refreshUi();
56
57private slots:
58 void onExecute();
59
60private:
61 void setupUi();
62 void rebuildCommandEditor();
63
64 WeakPtr<SweepStudy> analyzer_{};
65
66 QTabWidget* tabWidget_{};
67
68 // 变量与输出 Tab(同页左右分栏)
69 QSplitter* studySplitter_{};
70 UiSweepVariableList* varList_{};
71 UiSweepOutputList* outputList_{};
72
73 // 任务模型 Tab
74 QStackedWidget* commandStack_{};
75 QLabel* placeholderLabel_{};
76
77 // 执行按钮
78 QPushButton* executeBtn_{};
79};
80
81AST_NAMESPACE_END
遍历搜索分析器(参数化扫描),对变量进行嵌套循环遍历并执行仿真命令
定义 SweepStudy.hpp:92
SweepStudy 编辑界面
定义 UiSweepStudy.hpp:41
SweepStudy * analyzer() const
获取当前绑定的 SweepStudy
定义 UiSweepStudy.hpp:52
弱引用指针
定义 WeakPtr.hpp:35