🛰️航天仿真算法库 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
UiStateCartesian
(
const
UiStateCartesian
&) =
delete
;
49
UiStateCartesian
& operator=(
const
UiStateCartesian
&) =
delete
;
50
51
void
refreshUi();
52
void
apply();
53
void
applyTo(
StateCartesian
* state);
54
55
void
setStateCartesian(
StateCartesian
* state);
56
StateCartesian
* getStateCartesian()
const
;
57
58
private
slots:
59
void
onSelectFrame();
60
61
signals:
62
void
stateCartesianChanged(
StateCartesian
* state);
63
private
:
64
// 左侧控件
65
UiTimePoint
* epochEdit_{
nullptr
};
66
QLineEdit* frameEdit_{
nullptr
};
67
QPushButton* frameSelectBtn_{
nullptr
};
68
69
// 右侧控件
70
UiQuantity
* posXEdit_{
nullptr
};
71
UiQuantity
* posYEdit_{
nullptr
};
72
UiQuantity
* posZEdit_{
nullptr
};
73
UiQuantity
* velXEdit_{
nullptr
};
74
UiQuantity
* velYEdit_{
nullptr
};
75
UiQuantity
* velZEdit_{
nullptr
};
76
};
77
78
81
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