🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
UiEventDetector.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstGUI/UiObject.hpp"
25#include <QWidget>
26
27class QComboBox;
28
29AST_NAMESPACE_BEGIN
30
31class EventDetector;
32class UiQuantity;
33
35class UiInteger;
36
37class AST_GUI_API UiEventDetector : public UiObject
38{
39 Q_OBJECT
40public:
41 explicit UiEventDetector(Object* object, QWidget* parent = nullptr);
42 explicit UiEventDetector(QWidget* parent = nullptr);
43 ~UiEventDetector() override;
44 UiEventDetector(const UiEventDetector&) = delete;
45 UiEventDetector& operator=(const UiEventDetector&) = delete;
46
47 void setEventDetector(EventDetector* det);
48 EventDetector* getEventDetector() const;
49
50signals:
51 void detectorChanged(EventDetector* det);
52
53private:
54 void setupUi();
55 void refreshFromDetector(EventDetector* det);
56
57 UiInteger* repeatCountEdit_ = nullptr;
58 QComboBox* directionCombo_ = nullptr;
59 UiQuantity* thresholdEdit_ = nullptr;
60 UiQuantity* goalEdit_ = nullptr;
61};
62
63AST_NAMESPACE_END
事件检测基类 事件检测基类,用于检测事件是否发生。 参考orekit的EventDetector类
定义 EventDetector.hpp:39
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:95
定义 UiEventDetector.hpp:38
整数输入框
定义 UiInteger.hpp:36
与对象关联的 QWidget
定义 UiObject.hpp:36
数量输入框
定义 UiQuantity.hpp:41