🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
UiStateCartesian.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstGUI/UiState.hpp"
25
#include "AstGUI/UiQuantity.hpp"
26
#include "AstGUI/UiTimePoint.hpp"
27
#include <QLineEdit>
28
29
class
QPushButton;
30
31
AST_NAMESPACE_BEGIN
32
38
class
StateCartesian;
39
class
Frame;
40
41
class
AST_GUI_API
UiStateCartesian
:
public
UiState
42
{
43
Q_OBJECT
44
public
:
45
explicit
UiStateCartesian
(
Object
*
object
, QWidget *parent =
nullptr
);
46
explicit
UiStateCartesian
(QWidget *parent =
nullptr
);
47
~UiStateCartesian
() =
default
;
48
49
void
refreshUi();
50
void
apply();
51
void
applyTo(
StateCartesian
* state);
52
53
void
setStateCartesian(
StateCartesian
* state);
54
StateCartesian
* getStateCartesian()
const
;
55
56
private
slots:
57
void
onSelectFrame();
58
59
signals:
60
void
stateCartesianChanged(
StateCartesian
* state);
61
private
:
62
// 左侧控件
63
UiTimePoint
* epochEdit_{
nullptr
};
64
QLineEdit* frameEdit_{
nullptr
};
65
QPushButton* frameSelectBtn_{
nullptr
};
66
67
// 右侧控件
68
UiQuantity
* posXEdit_{
nullptr
};
69
UiQuantity
* posYEdit_{
nullptr
};
70
UiQuantity
* posZEdit_{
nullptr
};
71
UiQuantity
* velXEdit_{
nullptr
};
72
UiQuantity
* velYEdit_{
nullptr
};
73
UiQuantity
* velZEdit_{
nullptr
};
74
};
75
76
79
AST_NAMESPACE_END
ast::Object
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义
Object.hpp:95
ast::StateCartesian
笛卡尔状态(直角坐标)
定义
StateCartesian.hpp:40
ast::UiQuantity
数量输入框
定义
UiQuantity.hpp:41
ast::UiStateCartesian
定义
UiStateCartesian.hpp:42
ast::UiState
定义
UiState.hpp:36
ast::UiTimePoint
定义
UiTimePoint.hpp:36
src
AstGUI
State
UiStateCartesian.hpp
制作者
1.12.0