24#include "AstUtil/Object.hpp"
25#include "AstCore/Frame.hpp"
26#include "AstCore/EventTime.hpp"
47using HState = SharedPtr<State>;
56 ~State()
override =
default;
102 void setFrame(
Frame* frame);
107 errc_t changeFrame(
Frame* frame);
111 void setStateEpoch(
EventTime* stateEpoch);
115 void setStateEpoch(
const TimePoint& stateEpoch);
120 errc_t getStateEpoch(
TimePoint& stateEpoch)
const;
131 Body* getBody()
const;
135 double getBodyRadius()
const;
139 double getGM()
const {
return gm_; }
149 errc_t getStateInBodyInertial(
Body* body,
CartState& state)
const;
164 void setCoordEpoch(
EventTime* coordEpoch);
166 void setCoordEpoch(
const TimePoint& coordEpoch);
168 errc_t getCoordEpoch(
TimePoint& coordEpoch)
const;
170 bool getUseCoordEpoch()
const;
172 void setUseCoordEpoch(
bool useCoordEpoch);
174 void setCoordAxes(
Axes* axes);
176 errc_t changeCoordAxes(
Axes* axes);
178 Axes* getCoordAxes()
const;
直角坐标
定义 OrbitElement.hpp:46
天体
定义 CelestialBody.hpp:52
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:81
virtual errc_t getState(CartState &state) const =0
获取状态
virtual EStateType getStateType() const =0
获取状态类型
double getGM() const
获取引力常数
定义 State.hpp:139
virtual errc_t setState(const CartState &state)=0
设置状态
Frame * getFrame() const
获取参考坐标系
定义 State.hpp:99
SharedPtr< EventTime > & getStateEpochHandle()
获取状态历元时间句柄
定义 State.hpp:128
void setGM(double gm)
设置引力常数
定义 State.hpp:143
SharedPtr< EventTime > stateEpoch_
状态历元时间
定义 State.hpp:184
SharedPtr< Frame > frame_
参考坐标系
定义 State.hpp:182
绝对时间点
定义 TimePoint.hpp:106
EStateType
状态类型
定义 State.hpp:39
@ eUnknown
未知插值方法
定义 STKEphemerisFileParser.cpp:43