🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
UiEventDetectorEditor.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include <QStackedWidget>
25
26AST_NAMESPACE_BEGIN
27
28class EventDetector;
29class UiEventDetector;
30
32class AST_GUI_API UiEventDetectorEditor : public QStackedWidget
33{
34 Q_OBJECT
35public:
36 explicit UiEventDetectorEditor(QWidget* parent = nullptr);
37 ~UiEventDetectorEditor() override;
38
39 void setDetector(EventDetector* det);
40 EventDetector* getDetector() const;
41 void clear();
42
43signals:
44 void detectorChanged(EventDetector* det);
45
46private:
47 void setupUi();
48
49 UiEventDetector* basePage_ = nullptr;
50 int baseIdx_ = -1;
51};
52
53AST_NAMESPACE_END
事件检测基类 事件检测基类,用于检测事件是否发生。 参考orekit的EventDetector类
定义 EventDetector.hpp:39
事件检测器编辑器 — 根据 RTTI 类型切换编辑页面
定义 UiEventDetectorEditor.hpp:33
定义 UiEventDetector.hpp:38