🛰️航天仿真算法库 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 <QComboBox>
28
29
AST_NAMESPACE_BEGIN
30
36
class
StateCartesian;
37
38
class
AST_GUI_API
UiStateCartesian
:
public
UiState
39
{
40
Q_OBJECT
41
public
:
42
UiStateCartesian
(
Object
*
object
, QWidget *parent =
nullptr
);
43
UiStateCartesian
(QWidget *parent =
nullptr
);
44
~UiStateCartesian
() =
default
;
45
46
void
refreshUi();
47
void
apply();
48
void
applyTo(
StateCartesian
* state);
49
50
void
setStateCartesian(
StateCartesian
* state);
51
StateCartesian
* getStateCartesian()
const
;
52
signals:
53
void
stateCartesianChanged(
StateCartesian
* state);
54
private
:
55
// 左侧控件
56
UiTimePoint
* epochEdit_{
nullptr
};
57
QComboBox* frameCombo_{
nullptr
};
58
59
// 右侧控件
60
UiQuantity
* posXEdit_{
nullptr
};
61
UiQuantity
* posYEdit_{
nullptr
};
62
UiQuantity
* posZEdit_{
nullptr
};
63
UiQuantity
* velXEdit_{
nullptr
};
64
UiQuantity
* velYEdit_{
nullptr
};
65
UiQuantity
* velZEdit_{
nullptr
};
66
};
67
68
71
AST_NAMESPACE_END
ast::Object
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义
Object.hpp:81
ast::StateCartesian
笛卡尔状态(直角坐标)
定义
StateCartesian.hpp:40
ast::UiQuantity
数量输入框
定义
UiQuantity.hpp:43
ast::UiStateCartesian
定义
UiStateCartesian.hpp:39
ast::UiState
定义
UiState.hpp:36
ast::UiTimePoint
定义
UiTimePoint.hpp:35
src
AstGUI
State
UiStateCartesian.hpp
制作者
1.12.0