🛰️航天仿真算法库 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
45 void setEventDetector(EventDetector* det);
46 EventDetector* getEventDetector() const;
47
48signals:
49 void detectorChanged(EventDetector* det);
50
51private:
52 void setupUi();
53 void refreshFromDetector(EventDetector* det);
54
55 UiInteger* repeatCountEdit_ = nullptr;
56 QComboBox* directionCombo_ = nullptr;
57 UiQuantity* thresholdEdit_ = nullptr;
58 UiQuantity* goalEdit_ = nullptr;
59};
60
61AST_NAMESPACE_END
事件检测基类 事件检测基类,用于检测事件是否发生。 参考orekit的EventDetector类
定义 EventDetector.hpp:39
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:95
定义 UiEventDetector.hpp:38
整数输入框
定义 UiInteger.hpp:36
与对象关联的 QWidget
定义 UiObject.hpp:36
数量输入框
定义 UiQuantity.hpp:41