Stellarium 0.13.3
|
This StelObjectModule derivative is used to model SolarSystem bodies. More...
#include <SolarSystem.hpp>
Public Slots | |
void | setFlagPlanets (bool b) |
Set flag which determines if planets are drawn or hidden. More... | |
bool | getFlagPlanets () const |
Get the current value of the flag which determines if planet are drawn or hidden. More... | |
void | setFlagTrails (bool b) |
Set flag which determines if planet trails are drawn or hidden. More... | |
bool | getFlagTrails () const |
Get the current value of the flag which determines if planet trails are drawn or hidden. More... | |
void | setFlagHints (bool b) |
Set flag which determines if planet hints are drawn or hidden along labels. More... | |
bool | getFlagHints () const |
Get the current value of the flag which determines if planet hints are drawn or hidden along labels. More... | |
void | setFlagLabels (bool b) |
Set flag which determines if planet labels are drawn or hidden. More... | |
bool | getFlagLabels () const |
Get the current value of the flag which determines if planet labels are drawn or hidden. More... | |
void | setLabelsAmount (float a) |
Set the amount of planet labels. More... | |
float | getLabelsAmount (void) const |
Get the amount of planet labels. More... | |
void | setFlagOrbits (bool b) |
Set flag which determines if planet orbits are drawn or hidden. More... | |
bool | getFlagOrbits () const |
Get the current value of the flag which determines if planet orbits are drawn or hidden. More... | |
void | setFlagMarkers (bool b) |
Set flag which determines if planet markers are drawn or hidden. More... | |
bool | getFlagMarkers () const |
Get the current value of the flag which determines if planet markers are drawn or hidden. More... | |
void | setFlagLightTravelTime (bool b) |
Set flag which determines if the light travel time calculation is used or not. More... | |
bool | getFlagLightTravelTime (void) const |
Get the current value of the flag which determines if light travel time calculation is used or not. More... | |
void | setFontSize (float newFontSize) |
Set planet names font size. More... | |
void | setLabelsColor (const Vec3f &c) |
Set the color used to draw planet labels. More... | |
const Vec3f & | getLabelsColor (void) const |
Get the current color used to draw planet labels. More... | |
void | setOrbitsColor (const Vec3f &c) |
Set the color used to draw planet orbit lines. More... | |
Vec3f | getOrbitsColor (void) const |
Get the current color used to draw planet orbit lines. More... | |
void | setTrailsColor (const Vec3f &c) |
Set the color used to draw planet trails lines. More... | |
Vec3f | getTrailsColor () const |
Get the current color used to draw planet trails lines. More... | |
void | setPointersColor (const Vec3f &c) |
Set the color used to draw planet pointers. More... | |
Vec3f | getPointersColor () const |
Get the current color used to draw planet pointers. More... | |
void | setFlagMoonScale (bool b) |
Set flag which determines if Earth's moon is scaled or not. More... | |
bool | getFlagMoonScale (void) const |
Get the current value of the flag which determines if Earth's moon is scaled or not. More... | |
void | setMoonScale (double f) |
Set the display scaling factor for Earth's moon. More... | |
float | getMoonScale (void) const |
Get the display scaling factor for Earth's oon. More... | |
void | updateI18n () |
Translate names. (public so that SolarSystemEditor can call it). More... | |
float | getPlanetVMagnitude (QString planetName, bool withExtinction=false) const |
Get the V magnitude for Solar system bodies from scripts. More... | |
QString | getPlanetType (QString planetName) const |
Get type for Solar system bodies from scripts. More... | |
double | getDistanceToPlanet (QString planetName) const |
Get distance to Solar system bodies from scripts. More... | |
double | getElongationForPlanet (QString planetName) const |
Get elongation for Solar system bodies from scripts. More... | |
double | getPhaseAngleForPlanet (QString planetName) const |
Get phase angle for Solar system bodies from scripts. More... | |
float | getPhaseForPlanet (QString planetName) const |
Get phase for Solar system bodies from scripts. More... | |
void | setApparentMagnitudeAlgorithmOnEarth (QString algorithm) |
Set the algorithm for computation of apparent magnitudes for planets in case observer on the Earth. More... | |
QString | getApparentMagnitudeAlgorithmOnEarth () const |
Get the algorithm used for computation of apparent magnitudes for planets in case observer on the Earth. More... | |
void | setFlagNativeNames (bool b) |
Set flag which enable use native names for planets or not. More... | |
bool | getFlagNativeNames (void) const |
Get the current value of the flag which enables showing native names for planets or not. More... | |
void | setFlagTranslatedNames (bool b) |
Set flag which enable use translated names for planets or not. More... | |
bool | getFlagTranslatedNames (void) const |
Get the current value of the flag which enables showing translated names for planets or not. More... | |
void | setFlagIsolatedTrails (bool b) |
Set flag which enabled the showing of isolated trails for selected objects only or not. More... | |
bool | getFlagIsolatedTrails (void) const |
Get the current value of the flag which enables showing of isolated trails for selected objects only or not. More... | |
Public Member Functions | |
virtual void | init () |
Initialize the SolarSystem. More... | |
virtual void | deinit () |
Called before the module will be delete, and before the openGL context is suppressed. More... | |
virtual void | draw (StelCore *core) |
Draw SolarSystem objects (planets). More... | |
virtual void | update (double deltaTime) |
Update time-varying components. More... | |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Used to determine what order to draw the various StelModules. More... | |
virtual QList< StelObjectP > | searchAround (const Vec3d &v, double limitFov, const StelCore *core) const |
Search for SolarSystem objects in some area around a point. More... | |
virtual StelObjectP | searchByNameI18n (const QString &nameI18n) const |
Search for a SolarSystem object based on the localised name. More... | |
virtual StelObjectP | searchByName (const QString &name) const |
Search for a SolarSystem object based on the English name. More... | |
virtual QStringList | listMatchingObjectsI18n (const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const |
Find objects by translated name prefix. More... | |
virtual QStringList | listMatchingObjects (const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const |
Find objects by translated name prefix. More... | |
virtual QStringList | listAllObjects (bool inEnglish) const |
virtual QStringList | listAllObjectsByType (const QString &objType, bool inEnglish) const |
virtual QString | getName () const |
PlanetP | searchByEnglishName (QString planetEnglishName) const |
Get a pointer to a Planet object. More... | |
PlanetP | getSun () const |
Get the Planet object pointer for the Sun. More... | |
PlanetP | getEarth () const |
Get the Planet object pointer for the Earth. More... | |
PlanetP | getMoon () const |
Get the Planet object pointer for Earth's moon. More... | |
bool | nearLunarEclipse () |
Determine if a lunar eclipse is close at hand? More... | |
QStringList | getAllPlanetEnglishNames () const |
Get the list of all the planet english names. More... | |
QStringList | getAllPlanetLocalizedNames () const |
Get the list of all the planet localized names. More... | |
void | reloadPlanets () |
Reload the planets. More... | |
QString | getPlanetHashString () |
Get a hash of locale and ssystem.ini names for use with the TUI. More... | |
void | computePositions (double date, const Vec3d &observerPos=Vec3d(0.)) |
Compute the position and transform matrix for every element of the solar system. More... | |
const QList< PlanetP > & | getAllPlanets () const |
Get the list of all the bodies of the solar system. More... | |
Public Member Functions inherited from StelModule | |
virtual QString | getModuleVersion () const |
Get the version of the module, default is stellarium main version. More... | |
virtual QString | getAuthorName () const |
Get the name of the module author. More... | |
virtual QString | getAuthorEmail () const |
Get the email adress of the module author. More... | |
virtual void | handleMouseClicks (class QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | handleMouseWheel (class QWheelEvent *) |
Handle mouse wheel. More... | |
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
Handle mouse moves. More... | |
virtual void | handleKeys (class QKeyEvent *e) |
Handle key events. More... | |
virtual bool | handlePinch (qreal scale, bool started) |
Handle pinch gesture events. More... | |
virtual bool | configureGui (bool show=true) |
Detect or show the configuration GUI elements for the module. More... | |
Properties | |
bool | labelsDisplayed |
bool | orbitsDisplayed |
bool | trailsDisplayed |
bool | planetsDisplayed |
Additional Inherited Members | |
Public Types inherited from StelModule | |
enum | StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection } |
Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More... | |
enum | StelModuleActionName { ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves, ActionHandleKeys } |
Define the possible action for which an order is defined. More... | |
Protected Member Functions inherited from StelModule | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action to the StelActionMgr object. More... | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action to the StelActionMgr object. More... | |
This StelObjectModule derivative is used to model SolarSystem bodies.
This includes the Major Planets, Minor Planets and Comets.
Definition at line 46 of file SolarSystem.hpp.
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 |
|
virtual |
Called before the module will be delete, and before the openGL context is suppressed.
Deinitialize all openGL texture in this method.
Reimplemented from StelModule.
|
virtual |
Draw SolarSystem objects (planets).
core | The StelCore object. |
Reimplemented from StelModule.
QStringList SolarSystem::getAllPlanetEnglishNames | ( | ) | const |
Get the list of all the planet english names.
QStringList SolarSystem::getAllPlanetLocalizedNames | ( | ) | const |
Get the list of all the planet localized names.
|
inline |
Get the list of all the bodies of the solar system.
Definition at line 346 of file SolarSystem.hpp.
|
slot |
Get the algorithm used for computation of apparent magnitudes for planets in case observer on the Earth.
|
virtual |
Used to determine what order to draw the various StelModules.
Reimplemented from StelModule.
|
slot |
Get distance to Solar system bodies from scripts.
planetName | the case in-sensistive English planet name. |
|
inline |
Get the Planet object pointer for the Earth.
Definition at line 312 of file SolarSystem.hpp.
|
slot |
Get elongation for Solar system bodies from scripts.
planetName | the case in-sensistive English planet name. |
|
slot |
Get the current value of the flag which determines if planet hints are drawn or hidden along labels.
|
slot |
Get the current value of the flag which enables showing of isolated trails for selected objects only or not.
|
slot |
Get the current value of the flag which determines if planet labels are drawn or hidden.
|
inlineslot |
Get the current value of the flag which determines if light travel time calculation is used or not.
Definition at line 178 of file SolarSystem.hpp.
|
inlineslot |
Get the current value of the flag which determines if planet markers are drawn or hidden.
Definition at line 172 of file SolarSystem.hpp.
|
inlineslot |
Get the current value of the flag which determines if Earth's moon is scaled or not.
Definition at line 226 of file SolarSystem.hpp.
|
slot |
Get the current value of the flag which enables showing native names for planets or not.
|
inlineslot |
Get the current value of the flag which determines if planet orbits are drawn or hidden.
Definition at line 167 of file SolarSystem.hpp.
|
slot |
Get the current value of the flag which determines if planet are drawn or hidden.
|
slot |
Get the current value of the flag which determines if planet trails are drawn or hidden.
|
slot |
Get the current value of the flag which enables showing translated names for planets or not.
|
inlineslot |
Get the amount of planet labels.
The real amount is also proportional with FOV.
Definition at line 162 of file SolarSystem.hpp.
|
slot |
Get the current color used to draw planet labels.
|
inline |
Get the Planet object pointer for Earth's moon.
Definition at line 315 of file SolarSystem.hpp.
|
inlineslot |
Get the display scaling factor for Earth's oon.
Definition at line 231 of file SolarSystem.hpp.
|
slot |
Get the current color used to draw planet orbit lines.
|
slot |
Get phase angle for Solar system bodies from scripts.
planetName | the case in-sensistive English planet name. |
|
slot |
Get phase for Solar system bodies from scripts.
planetName | the case in-sensistive English planet name. |
QString SolarSystem::getPlanetHashString | ( | ) |
Get a hash of locale and ssystem.ini names for use with the TUI.
|
slot |
Get type for Solar system bodies from scripts.
planetName | the case in-sensistive English planet name. |
|
slot |
Get the V magnitude for Solar system bodies from scripts.
planetName | the case in-sensistive English planet name. |
withExtinction | the flag for use extinction effect for magnitudes (default not use) |
|
inlineslot |
Get the current color used to draw planet pointers.
Definition at line 221 of file SolarSystem.hpp.
|
inline |
Get the Planet object pointer for the Sun.
Definition at line 309 of file SolarSystem.hpp.
|
inlineslot |
Get the current color used to draw planet trails lines.
Definition at line 211 of file SolarSystem.hpp.
|
virtual |
Initialize the SolarSystem.
Includes:
Implements StelModule.
|
virtual |
Find objects by translated name prefix.
Find and return the list of at most maxNbItem objects auto-completing the passed object English name.
objPrefix | the case insensitive first letters of the searched object. |
maxNbItem | the maximum number of returned object names. |
useStartOfWords | the autofill mode for returned objects names. |
Implements StelObjectModule.
|
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. |
useStartOfWords | the autofill mode for returned objects names. |
Implements StelObjectModule.
bool SolarSystem::nearLunarEclipse | ( | ) |
Determine if a lunar eclipse is close at hand?
void SolarSystem::reloadPlanets | ( | ) |
Reload the planets.
|
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.
PlanetP SolarSystem::searchByEnglishName | ( | QString | planetEnglishName | ) | const |
Get a pointer to a Planet object.
planetEnglishName | the English name of the desired planet. |
|
virtual |
Search for a SolarSystem object based on the English name.
name | the case in-sensistive English planet name. |
Implements StelObjectModule.
|
virtual |
Search for a SolarSystem object based on the localised name.
nameI18n | the case in-sensistive translated planet name. |
Implements StelObjectModule.
|
slot |
Set the algorithm for computation of apparent magnitudes for planets in case observer on the Earth.
Possible values:
algorithm | the case in-sensitive algorithm name |
|
slot |
Set flag which determines if planet hints are drawn or hidden along labels.
|
slot |
Set flag which enabled the showing of isolated trails for selected objects only or not.
|
slot |
Set flag which determines if planet labels are drawn or hidden.
|
slot |
Set flag which determines if the light travel time calculation is used or not.
|
inlineslot |
Set flag which determines if planet markers are drawn or hidden.
Definition at line 170 of file SolarSystem.hpp.
|
slot |
Set flag which determines if Earth's moon is scaled or not.
|
slot |
Set flag which enable use native names for planets or not.
|
slot |
Set flag which determines if planet orbits are drawn or hidden.
|
slot |
Set flag which determines if planets are drawn or hidden.
|
slot |
Set flag which determines if planet trails are drawn or hidden.
|
slot |
Set flag which enable use translated names for planets or not.
|
slot |
Set planet names font size.
|
inlineslot |
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 |
Definition at line 159 of file SolarSystem.hpp.
|
slot |
Set the color used to draw planet labels.
c | The color of the planet labels // example of usage in scripts
|
|
slot |
Set the display scaling factor for Earth's moon.
|
slot |
Set the color used to draw planet orbit lines.
c | The color of the planet orbit lines // example of usage in scripts
|
|
inlineslot |
Set the color used to draw planet pointers.
c | The color of the planet pointers // example of usage in scripts
|
Definition at line 219 of file SolarSystem.hpp.
|
inlineslot |
Set the color used to draw planet trails lines.
c | The color of the planet trails lines // example of usage in scripts
|
Definition at line 209 of file SolarSystem.hpp.
|
virtual |
|
slot |
Translate names. (public so that SolarSystemEditor can call it).