🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
BodyAttraction.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstCore/ForceModel.hpp"
25
26AST_NAMESPACE_BEGIN
27
33class GravityForce;
34class PointMassForce;
35class ThirdBodyForce;
36
39{
40 eGravity,
42 eUnknown,
43};
44
45
47class AST_CORE_API BodyAttraction: public ForceModel
48{
49public:
50 AST_OBJECT(BodyAttraction)
51
52
54 virtual EBodyAttractionType getBodyAttractionType() const = 0;
55
58 virtual BodyAttraction* clone() const = 0;
59
63 bool isAttractionType(EBodyAttractionType type) const{
64 return getBodyAttractionType() == type;
65 }
66
69 const GravityForce* asGravityForce() const;
70 GravityForce* asGravityForce();
71
74 const PointMassForce* asPointMassForce() const;
75 PointMassForce* asPointMassForce();
76};
77
78
79
82AST_NAMESPACE_END
天体引力模型
定义 BodyAttraction.hpp:48
力模型
定义 ForceModel.hpp:50
定义 GravityForce.hpp:43
Class * type() const
获取对象类型
定义 Object.hpp:244
点质量引力模型/
定义 PointMassForce.hpp:35
EBodyAttractionType
天体引力模型类型
定义 BodyAttraction.hpp:39
@ ePointMass
中心天体点质量引力模型
@ eGravity
中心天体重力场模型
@ eUnknown
未知插值方法
定义 STKEphemerisFileParser.cpp:43