🛰️航天仿真算法库 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:
53
56 virtual BodyAttraction* clone() const = 0;
57
62 return getBodyAttractionType() == type;
63 }
64
67 const GravityForce* asGravityForce() const;
68 GravityForce* asGravityForce();
69
72 const PointMassForce* asPointMassForce() const;
73 PointMassForce* asPointMassForce();
74};
75
76
77
80AST_NAMESPACE_END
天体引力模型
定义 BodyAttraction.hpp:48
virtual BodyAttraction * clone() const =0
克隆引力模型
virtual EBodyAttractionType getBodyAttractionType() const =0
获取引力模型类型
bool isAttractionType(EBodyAttractionType type) const
检查是否为指定引力模型类型
定义 BodyAttraction.hpp:61
力模型
定义 ForceModel.hpp:54
定义 GravityForce.hpp:43
Class * type() const
获取对象类型
定义 Object.hpp:239
点质量引力模型/
定义 PointMassForce.hpp:35
EBodyAttractionType
天体引力模型类型
定义 BodyAttraction.hpp:39
@ ePointMass
中心天体点质量引力模型
@ eGravity
中心天体重力场模型
@ eUnknown
未知插值方法
定义 STKEphemerisFileParser.cpp:43