🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
UiThirdBodyForceList.hpp
浏览该文件的文档.
1
8
9#pragma once
10
11#include "AstGlobal.h"
12#include "AstGUI/UiObject.hpp"
13#include "AstCore/ThirdBodyForce.hpp"
14#include "AstCore/HPOPForceModel.hpp"
15#include "AstGUI/UiThirdBodyForce.hpp"
16#include <QVBoxLayout>
17#include <QHBoxLayout>
18#include <QListWidget>
19#include <QPushButton>
20#include <QGroupBox>
21
22AST_NAMESPACE_BEGIN
23
24class AST_GUI_API UiThirdBodyForceList: public UiObject
25{
26 Q_OBJECT
27public:
28 UiThirdBodyForceList(Object* object, QWidget *parent = nullptr);
29 UiThirdBodyForceList(QWidget *parent = nullptr);
30 ~UiThirdBodyForceList() = default;
31
32 HPOPForceModel* getHPOPForceModel() const;
33 void setHPOPForceModel(HPOPForceModel* hpop);
34 void refreshUi();
35 void apply();
36protected:
37 void setupUi();
38private slots:
39 void onAddThirdBody();
40 void onRemoveThirdBody();
41 void onThirdBodySelected(int index);
42private:
43 // 布局
44 QVBoxLayout* mainLayout_{nullptr};
45 QHBoxLayout* topLayout_{nullptr};
46 QListWidget* thirdBodyList_{nullptr};
47 QVBoxLayout* buttonLayout_{nullptr};
48 QPushButton* addButton_{nullptr};
49 QPushButton* removeButton_{nullptr};
50 QGroupBox* detailGroup_{nullptr};
51 QVBoxLayout* detailLayout_{nullptr};
52 UiThirdBodyForce* thirdBodyWidget_{nullptr};
53
54 // 数据
55 HPOPForceModel* hpopForceModel_{nullptr};
56};
57
58AST_NAMESPACE_END
高精度轨道预报力模型
定义 HPOPForceModel.hpp:49
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:86
与对象关联的 QWidget
定义 UiObject.hpp:36
定义 UiThirdBodyForceList.hpp:25
定义 UiThirdBodyForce.hpp:25