🛰️航天仿真算法库 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
30AST_NAMESPACE_BEGIN
31
40{
41public:
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;
55public:
56 errc_t calculate(const TimeList& timeList, VariantVector& result) const override;
57 const DataElements& getElements() const override;
58public:
59 errc_t calculate(const TimeList& timeList, std::vector<Data>& result) const;
60 errc_t calculate(const TimeList& timeList, Span<Data> result) const;
61public:
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; }
66private:
67 WeakPtr<Point> point_{};
68 WeakPtr<Frame> frame_{};
69};
70
71
74AST_NAMESPACE_END
数据元素容器
定义 DataElements.hpp:90
笛卡尔位置数据组 — ICRF 坐标系下的 x, y, z 位置分量
定义 DataGroupCartPos.hpp:40
随时间变化的数据组
定义 DataGroupTimeVar.hpp:37
坐标系抽象基类
定义 Frame.hpp:62
点抽象基类
定义 Point.hpp:41
非拥有的连续对象序列视图
定义 Span.hpp:71
时间点列表
定义 TimeList.hpp:49
绝对时间点
定义 TimePoint.hpp:108
变类型向量容器
定义 VariantVector.hpp:59
定义 DataGroupCartPos.hpp:43