|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <SolarSystem.hpp>
类 ast::SolarSystem 继承关系图:Public 成员函数 | |
| void | init () |
| errc_t | load (StringView dirpath) |
| errc_t | loadPCK (StringView filepath) |
| errc_t | loadDefault () |
| const std::string & | getDirpath () const |
| CelestialBody * | getSolarSystemBarycenter () const |
| CelestialBody * | getEarthMoonBarycenter () const |
| CelestialBody * | getMercury () const |
| CelestialBody * | getVenus () const |
| CelestialBody * | getEarth () const |
| CelestialBody * | getMars () const |
| CelestialBody * | getJupiter () const |
| CelestialBody * | getSaturn () const |
| CelestialBody * | getUranus () const |
| CelestialBody * | getNeptune () const |
| CelestialBody * | getPluto () const |
| CelestialBody * | getMoon () const |
| CelestialBody * | getSun () const |
| CelestialBody * | getBody (StringView name) const |
| CelestialBody * | getBodyByJplIndex (int index) const |
| CelestialBody * | getBodyBySpiceId (int id) const |
| CelestialBody * | addBody (StringView name) |
| CelestialBody * | addBody (HCelestialBody body) |
| CelestialBody * | getOrAddBody (StringView name) |
Public 成员函数 继承自 ast::Object | |
| Object (Object *parentScope) | |
| Object (std::nullptr_t) | |
| virtual Class * | getType () const |
| virtual const std::string & | getName () const |
| errc_t | openEditDialog () |
| Attribute | attr (StringView path) |
| errc_t | getAttrBool (StringView path, bool &value) const |
| errc_t | getAttrInt (StringView path, int &value) const |
| errc_t | getAttrDouble (StringView path, double &value) const |
| errc_t | getAttrString (StringView path, std::string &value) const |
| double | getAttrDouble (StringView path) const |
| int | getAttrInt (StringView path) const |
| bool | getAttrBool (StringView path) const |
| std::string | getAttrString (StringView path) const |
| errc_t | setAttrBool (StringView path, bool value) |
| errc_t | setAttrInt (StringView path, int value) |
| errc_t | setAttrDouble (StringView path, double value) |
| errc_t | setAttrString (StringView path, StringView value) |
| Class * | type () const |
| Property * | getProperty (StringView fieldName) const |
| uint32_t | getID () const |
| errc_t | setParentScope (Object *parentScope) |
| Object * | getParentScope () const |
| uint32_t | refCount () const |
| uint32_t | weakRefCount () const |
| bool | isDestructed () const |
| void | destruct () |
| uint32_t | incWeakRef () |
| uint32_t | decWeakRef () |
| uint32_t | incRef () |
| uint32_t | decRef () |
| uint32_t | decRefNoDelete () |
静态 Public 成员函数 | |
| static std::string | defaultSolarSystemDir () |
静态 Public 成员函数 继承自 ast::Object | |
| static Class * | getStaticType () |
Protected 类型 | |
| using | BodyNameMap = std::unordered_map<std::string, CelestialBody*> |
| using | BodyIndexMap = std::unordered_map<int, CelestialBody*> |
| using | BodyVector = std::vector<SharedPtr<CelestialBody>> |
Protected 属性 | |
| SharedPtr< CelestialBody > | solarSystemBarycenter_ |
| SharedPtr< CelestialBody > | earthMoonBarycenter_ |
| SharedPtr< CelestialBody > | mercury_ |
| SharedPtr< CelestialBody > | venus_ |
| SharedPtr< CelestialBody > | earth_ |
| SharedPtr< CelestialBody > | mars_ |
| SharedPtr< CelestialBody > | jupiter_ |
| SharedPtr< CelestialBody > | saturn_ |
| SharedPtr< CelestialBody > | uranus_ |
| SharedPtr< CelestialBody > | neptune_ |
| SharedPtr< CelestialBody > | pluto_ |
| SharedPtr< CelestialBody > | moon_ |
| SharedPtr< CelestialBody > | sun_ |
| BodyVector | bodies_ |
| BodyNameMap | nameMap_ |
| BodyIndexMap | jplIndexMap_ |
| BodyIndexMap | spiceIdMap_ |
| bool | isInit_ {false} |
| std::string | dirpath_ |
额外继承的成员函数 | |
静态 Public 属性 继承自 ast::Object | |
| static Class | staticType |
Protected 成员函数 继承自 ast::Object | |
| Object (const Object &obj) | |
| Object & | operator= (const Object &obj) |
太阳系
太阳系行星及行星卫星的集合, 包含水星、金星、地球、火星、木星、土星、天王星、海王星、冥王星、月球和太阳等。
| CelestialBody * ast::SolarSystem::addBody | ( | HCelestialBody | body | ) |
添加一个新的天体,如果相应名称的天体已存在,则返回nullptr
| body | - 天体指针 |
| - | 天体指针 |
| CelestialBody * ast::SolarSystem::addBody | ( | StringView | name | ) |
添加一个新的天体,如果name已存在,则返回nullptr
| name | - 天体名称 |
| - | 天体指针 |
| CelestialBody * ast::SolarSystem::getBody | ( | StringView | name | ) | const |
获取指定名称的天体
| name | - 天体名称 |
| - | 天体指针 |
| CelestialBody * ast::SolarSystem::getBodyByJplIndex | ( | int | index | ) | const |
获取指定JPL索引的天体
| index | - JPL索引 |
| - | 天体指针 |
| CelestialBody * ast::SolarSystem::getBodyBySpiceId | ( | int | id | ) | const |
获取指定SPICE ID的天体
| id | - SPICE ID |
| - | 天体指针 |
| CelestialBody * ast::SolarSystem::getOrAddBody | ( | StringView | name | ) |
获取指定名称的天体,若不存在则添加
| name | - 天体名称 |
| - | 天体指针 |
| errc_t ast::SolarSystem::load | ( | StringView | dirpath | ) |
加载指定目录下的太阳系天体数据
| dirpath | - 数据目录路径 |
| - | 错误码 |
| errc_t ast::SolarSystem::loadPCK | ( | StringView | filepath | ) |
通过PCK文件加载太阳系天体数据
| filepath | - PCK文件路径 |
| - | 错误码 |