🛰️航天仿真算法库 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
:
52
virtual
EBodyAttractionType
getBodyAttractionType
()
const
= 0;
53
56
virtual
BodyAttraction
*
clone
()
const
= 0;
57
61
bool
isAttractionType
(
EBodyAttractionType
type)
const
{
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
80
AST_NAMESPACE_END
ast::BodyAttraction
天体引力模型
定义
BodyAttraction.hpp:48
ast::BodyAttraction::clone
virtual BodyAttraction * clone() const =0
克隆引力模型
ast::BodyAttraction::getBodyAttractionType
virtual EBodyAttractionType getBodyAttractionType() const =0
获取引力模型类型
ast::BodyAttraction::isAttractionType
bool isAttractionType(EBodyAttractionType type) const
检查是否为指定引力模型类型
定义
BodyAttraction.hpp:61
ast::ForceModel
力模型
定义
ForceModel.hpp:54
ast::GravityForce
定义
GravityForce.hpp:43
ast::Object::type
Class * type() const
获取对象类型
定义
Object.hpp:239
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