🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
DataGroupCartPos.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstReport/DataGroupTimeVar.hpp"
25
#include "AstCore/Point.hpp"
26
#include "AstCore/Frame.hpp"
27
#include "AstMath/Vector.hpp"
28
#include "AstUtil/Span.hpp"
29
30
AST_NAMESPACE_BEGIN
31
39
class
DataGroupCartPos
:
public
DataGroupTimeVar
40
{
41
public
:
42
struct
Data
43
{
44
TimePoint
time_;
45
Vector3d pos_;
46
47
const
TimePoint
& getTime()
const
{
return
time_; }
48
double
getX()
const
{
return
pos_.x(); }
49
double
getY()
const
{
return
pos_.y(); }
50
double
getZ()
const
{
return
pos_.z(); }
51
};
52
static
DataElements
Elements();
53
DataGroupCartPos
() =
default
;
54
~DataGroupCartPos
() =
default
;
55
public
:
56
errc_t calculate(
const
TimeList
& timeList,
VariantVector
& result)
const override
;
57
const
DataElements
& getElements()
const override
;
58
public
:
59
errc_t calculate(
const
TimeList
& timeList, std::vector<Data>& result)
const
;
60
errc_t calculate(
const
TimeList
& timeList,
Span<Data>
result)
const
;
61
public
:
62
Point
* getPoint()
const
{
return
point_.get(); }
63
Frame
* getFrame()
const
{
return
frame_.get(); }
64
void
setPoint(Point* p) { point_ = p; }
65
void
setFrame(Frame* f) { frame_ = f; }
66
private
:
67
WeakPtr<Point> point_{};
68
WeakPtr<Frame> frame_{};
69
};
70
71
74
AST_NAMESPACE_END
ast::DataElements
数据元素容器
定义
DataElements.hpp:90
ast::DataGroupCartPos
笛卡尔位置数据组 — ICRF 坐标系下的 x, y, z 位置分量
定义
DataGroupCartPos.hpp:40
ast::DataGroupTimeVar
随时间变化的数据组
定义
DataGroupTimeVar.hpp:37
ast::Frame
坐标系抽象基类
定义
Frame.hpp:62
ast::Point
点抽象基类
定义
Point.hpp:41
ast::Span
非拥有的连续对象序列视图
定义
Span.hpp:71
ast::TimeList
时间点列表
定义
TimeList.hpp:49
ast::TimePoint
绝对时间点
定义
TimePoint.hpp:108
ast::VariantVector
变类型向量容器
定义
VariantVector.hpp:59
ast::DataGroupCartPos::Data
定义
DataGroupCartPos.hpp:43
src
AstReport
Data
Impl
DataProvider
DataGroupCartPos.hpp
制作者
1.12.0