![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <SolarSystem.hpp>
Inherits StelObjectModule.
Public Slots | |
| void | setFlagPlanets (bool b) |
| bool | getFlagPlanets () const |
| void | setFlagTrails (bool b) |
| bool | getFlagTrails () const |
| void | setFlagHints (bool b) |
| bool | getFlagHints () const |
| void | setFlagLabels (bool b) |
| bool | getFlagLabels () const |
| void | setLabelsAmount (float a) |
| float | getLabelsAmount (void) const |
| void | setFlagOrbits (bool b) |
| bool | getFlagOrbits () const |
| void | setFlagLightTravelTime (bool b) |
| bool | getFlagLightTravelTime (void) const |
| void | setFontSize (float newFontSize) |
| void | setLabelsColor (const Vec3f &c) |
| const Vec3f & | getLabelsColor (void) const |
| void | setOrbitsColor (const Vec3f &c) |
| Vec3f | getOrbitsColor (void) const |
| void | setTrailsColor (const Vec3f &c) |
| Vec3f | getTrailsColor (void) const |
| void | setFlagMoonScale (bool b) |
| bool | getFlagMoonScale (void) const |
| void | setMoonScale (float f) |
| float | getMoonScale (void) const |
Public Member Functions | |
| virtual void | init () |
| virtual void | draw (StelCore *core) |
| virtual void | update (double deltaTime) |
| virtual void | updateI18n () |
| virtual void | selectedObjectChangeCallBack (StelModuleSelectAction action=StelModule::ReplaceSelection) |
| virtual void | setStelStyle (const StelStyle &style) |
| virtual double | getCallOrder (StelModuleActionName actionName) const |
| virtual QList< StelObjectP > | searchAround (const Vec3d &v, double limitFov, const StelCore *core) const |
| virtual StelObjectP | searchByNameI18n (const QString &nameI18n) const |
| virtual StelObjectP | searchByName (const QString &name) const |
| virtual QStringList | listMatchingObjectsI18n (const QString &objPrefix, int maxNbItem=5) const |
| Planet * | searchByEnglishName (QString planetEnglishName) const |
| Planet * | getSun (void) const |
| Planet * | getEarth (void) const |
| Planet * | getMoon (void) const |
| bool | nearLunarEclipse () |
| QStringList | getAllPlanetEnglishNames () const |
| QString | getPlanetHashString () |
| void | computePositions (double date, const Vec3d &observerPos=Vec3d(0, 0, 0)) |
| const std::vector< Planet * > & | getAllPlanets () const |
Classes | |
| struct | biggerDistance |
This includes the Major Planets, Minor Planets and Comets.
| virtual void SolarSystem::init | ( | ) | [virtual] |
Initialize the SolarSystem.
Includes:
Implements StelModule.
| virtual void SolarSystem::draw | ( | StelCore * | core | ) | [virtual] |
Draw SolarSystem objects (planets).
| core | The StelCore object. |
Implements StelModule.
| virtual void SolarSystem::update | ( | double | deltaTime | ) | [virtual] |
| virtual void SolarSystem::updateI18n | ( | ) | [virtual] |
| virtual void SolarSystem::selectedObjectChangeCallBack | ( | StelModuleSelectAction | action = StelModule::ReplaceSelection |
) | [virtual] |
| virtual void SolarSystem::setStelStyle | ( | const StelStyle & | style | ) | [virtual] |
| virtual double SolarSystem::getCallOrder | ( | StelModuleActionName | actionName | ) | const [virtual] |
| virtual QList<StelObjectP> SolarSystem::searchAround | ( | const Vec3d & | v, | |
| double | limitFov, | |||
| const StelCore * | core | |||
| ) | const [virtual] |
Search for SolarSystem objects in some area around a point.
| v | A vector representing a point in the sky. | |
| limitFov | The radius of the circle around the point v which defines the size of the area to search. | |
| core | the core object |
Implements StelObjectModule.
| virtual StelObjectP SolarSystem::searchByNameI18n | ( | const QString & | nameI18n | ) | const [virtual] |
Search for a SolarSystem object based on the localised name.
| nameI18n | the case in-sensistive translated planet name. |
Implements StelObjectModule.
| virtual StelObjectP SolarSystem::searchByName | ( | const QString & | name | ) | const [virtual] |
Search for a SolarSystem object based on the English name.
| name | the case in-sensistive English planet name. |
Implements StelObjectModule.
| virtual QStringList SolarSystem::listMatchingObjectsI18n | ( | const QString & | objPrefix, | |
| int | maxNbItem = 5 | |||
| ) | const [virtual] |
Find objects by translated name prefix.
Find and return the list of at most maxNbItem objects auto-completing the passed object I18n name.
| objPrefix | the case insensitive first letters of the searched object. | |
| maxNbItem | the maximum number of returned object names. |
Implements StelObjectModule.
| void SolarSystem::setFlagPlanets | ( | bool | b | ) | [slot] |
Set flag which determines if planets are drawn or hidden.
| bool SolarSystem::getFlagPlanets | ( | ) | const [slot] |
Get the current value of the flag which determines if planet are drawn or hidden.
| void SolarSystem::setFlagTrails | ( | bool | b | ) | [slot] |
Set flag which determines if planet trails are drawn or hidden.
| bool SolarSystem::getFlagTrails | ( | ) | const [slot] |
Get the current value of the flag which determines if planet trails are drawn or hidden.
| void SolarSystem::setFlagHints | ( | bool | b | ) | [slot] |
Set flag which determines if planet hints are drawn or hidden along labels.
| bool SolarSystem::getFlagHints | ( | ) | const [slot] |
Get the current value of the flag which determines if planet hints are drawn or hidden along labels.
| void SolarSystem::setFlagLabels | ( | bool | b | ) | [slot] |
Set flag which determines if planet labels are drawn or hidden.
| bool SolarSystem::getFlagLabels | ( | ) | const [slot] |
Get the current value of the flag which determines if planet labels are drawn or hidden.
| void SolarSystem::setLabelsAmount | ( | float | a | ) | [inline, slot] |
Set the amount of planet labels.
The real amount is also proportional with FOV. The limit is set in function of the planets magnitude
| a | the amount between 0 and 10. 0 is no labels, 10 is maximum of labels |
| float SolarSystem::getLabelsAmount | ( | void | ) | const [inline, slot] |
Get the amount of planet labels.
The real amount is also proportional with FOV.
| void SolarSystem::setFlagOrbits | ( | bool | b | ) | [slot] |
Set flag which determines if planet orbits are drawn or hidden.
| bool SolarSystem::getFlagOrbits | ( | void | ) | const [inline, slot] |
Get the current value of the flag which determines if planet orbits are drawn or hidden.
| void SolarSystem::setFlagLightTravelTime | ( | bool | b | ) | [slot] |
Set flag which determines if the light travel time calculation is used or not.
| bool SolarSystem::getFlagLightTravelTime | ( | void | ) | const [inline, slot] |
Get the current value of the flag which determines if light travel time calculation is used or not.
| void SolarSystem::setFontSize | ( | float | newFontSize | ) | [slot] |
Set planet names font size.
| void SolarSystem::setLabelsColor | ( | const Vec3f & | c | ) | [slot] |
Set the color used to draw planet labels.
| const Vec3f& SolarSystem::getLabelsColor | ( | void | ) | const [slot] |
Get the current color used to draw planet labels.
| void SolarSystem::setOrbitsColor | ( | const Vec3f & | c | ) | [slot] |
Set the color used to draw planet orbit lines.
| Vec3f SolarSystem::getOrbitsColor | ( | void | ) | const [slot] |
Get the current color used to draw planet orbit lines.
| void SolarSystem::setTrailsColor | ( | const Vec3f & | c | ) | [slot] |
Set the color used to draw planet trails.
| Vec3f SolarSystem::getTrailsColor | ( | void | ) | const [slot] |
Get the current color used to draw planet trails.
| void SolarSystem::setFlagMoonScale | ( | bool | b | ) | [slot] |
Set flag which determines if Earth's moon is scaled or not.
| bool SolarSystem::getFlagMoonScale | ( | void | ) | const [inline, slot] |
Get the current value of the flag which determines if Earth's moon is scaled or not.
| void SolarSystem::setMoonScale | ( | float | f | ) | [slot] |
Set the display scaling factor for Earth's moon.
| float SolarSystem::getMoonScale | ( | void | ) | const [inline, slot] |
Get the display scaling factor for Earth's oon.
| Planet* SolarSystem::searchByEnglishName | ( | QString | planetEnglishName | ) | const |
Get a pointer to a Planet object.
| planetEnglishName | the English name of the desired planet. |
| Planet* SolarSystem::getSun | ( | void | ) | const [inline] |
Get the Planet object pointer for the Sun.
| Planet* SolarSystem::getEarth | ( | void | ) | const [inline] |
Get the Planet object pointer for the Earth.
| Planet* SolarSystem::getMoon | ( | void | ) | const [inline] |
Get the Planet object pointer for Earth's moon.
| bool SolarSystem::nearLunarEclipse | ( | ) |
Determine if a lunar eclipse is close at hand?
| QStringList SolarSystem::getAllPlanetEnglishNames | ( | ) | const |
Get the list of all the planet english names.
| QString SolarSystem::getPlanetHashString | ( | ) |
Get a hash of locale and ssystem.ini names for use with the TUI.
Compute the position and transform matrix for every element of the solar system.
| observerPos | Position of the observer in heliocentric ecliptic frame (Required for light travel time computation). | |
| date | the date in JDay |
| const std::vector<Planet*>& SolarSystem::getAllPlanets | ( | ) | const [inline] |
Get the list of all the bodies of the solar system.
1.5.5