🛰️航天仿真算法库 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
27
class
QComboBox;
28
29
AST_NAMESPACE_BEGIN
30
31
class
EventDetector;
32
class
UiQuantity;
33
35
class
UiInteger;
36
37
class
AST_GUI_API
UiEventDetector
:
public
UiObject
38
{
39
Q_OBJECT
40
public
:
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
48
signals:
49
void
detectorChanged(
EventDetector
* det);
50
51
private
:
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
61
AST_NAMESPACE_END
ast::EventDetector
事件检测基类 事件检测基类,用于检测事件是否发生。 参考orekit的EventDetector类
定义
EventDetector.hpp:39
ast::Object
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义
Object.hpp:95
ast::UiEventDetector
定义
UiEventDetector.hpp:38
ast::UiInteger
整数输入框
定义
UiInteger.hpp:36
ast::UiObject
与对象关联的 QWidget
定义
UiObject.hpp:36
ast::UiQuantity
数量输入框
定义
UiQuantity.hpp:41
src
AstGUI
Propagator
UiEventDetector.hpp
制作者
1.12.0