🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
BodyAttraction.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstCore/ForceModel.hpp"
25
26
AST_NAMESPACE_BEGIN
27
33
class
GravityForce;
34
class
PointMassForce;
35
class
ThirdBodyForce;
36
38
enum class
EBodyAttractionType
39
{
40
eGravity
,
41
ePointMass
,
42
eUnknown
,
43
};
44
45
47
class
AST_CORE_API
BodyAttraction
:
public
ForceModel
48
{
49
public
:
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
82
AST_NAMESPACE_END
ast::BodyAttraction
天体引力模型
定义
BodyAttraction.hpp:48
ast::ForceModel
力模型
定义
ForceModel.hpp:50
ast::GravityForce
定义
GravityForce.hpp:43
ast::Object::type
Class * type() const
获取对象类型
定义
Object.hpp:244
ast::PointMassForce
点质量引力模型/
定义
PointMassForce.hpp:35
ast::EBodyAttractionType
EBodyAttractionType
天体引力模型类型
定义
BodyAttraction.hpp:39
ast::EBodyAttractionType::ePointMass
@ ePointMass
中心天体点质量引力模型
ast::EBodyAttractionType::eGravity
@ eGravity
中心天体重力场模型
ast::eUnknown
@ eUnknown
未知插值方法
定义
STKEphemerisFileParser.cpp:43
src
AstCore
ForceModel
BodyAttraction.hpp
制作者
1.12.0