Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classSolarSystem.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:25:38 2014 Кодировка: Поисковые слова: moon |
Stellarium 0.12.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 | 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 | 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 (float 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... | |
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... | |
Public Member Functions | |
virtual void | init () |
Initialize the SolarSystem. More... | |
virtual void | draw (StelCore *core, class StelRenderer *renderer) |
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) const |
Find objects by translated name prefix. More... | |
virtual QStringList | listMatchingObjects (const QString &objPrefix, int maxNbItem=5) const |
Find objects by translated name prefix. More... | |
virtual QStringList | listAllObjects (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... | |
double | getEclipseFactor (const StelCore *core) const |
Determines relative amount of sun visible from the observer's position. 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... | |
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... | |
This StelObjectModule derivative is used to model SolarSystem bodies.
This includes the Major Planets, Minor Planets and Comets.
Definition at line 44 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 |
Draw SolarSystem objects (planets).
core | The StelCore object. |
renderer | Renderer to use for drawing. |
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 263 of file SolarSystem.hpp.
|
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 226 of file SolarSystem.hpp.
double SolarSystem::getEclipseFactor | ( | const StelCore * | core | ) | const |
Determines relative amount of sun visible from the observer's position.
|
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 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 155 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 178 of file SolarSystem.hpp.
|
inlineslot |
Get the current value of the flag which determines if planet orbits are drawn or hidden.
Definition at line 149 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.
|
inlineslot |
Get the amount of planet labels.
The real amount is also proportional with FOV.
Definition at line 144 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 229 of file SolarSystem.hpp.
|
inlineslot |
Get the display scaling factor for Earth's oon.
Definition at line 183 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 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) |
|
inline |
Get the Planet object pointer for the Sun.
Definition at line 223 of file SolarSystem.hpp.
|
inlineslot |
Get the current color used to draw planet trails lines.
Definition at line 173 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. |
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. |
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 flag which determines if planet hints are drawn or hidden along labels.
|
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.
|
slot |
Set flag which determines if Earth's moon is scaled 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 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 141 of file SolarSystem.hpp.
|
slot |
Set the color used to draw planet labels.
|
slot |
Set the display scaling factor for Earth's moon.
|
slot |
Set the color used to draw planet orbit lines.
|
inlineslot |
Set the color used to draw planet trails lines.
Definition at line 171 of file SolarSystem.hpp.
|
virtual |
|
slot |
Translate names. (public so that SolarSystemEditor can call it).