![]() |
Stellarium 0.11.4 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Store the informations for a location on a planet. More...
#include <StelLocation.hpp>
Public Member Functions | |
| QString | getID () const |
| Return a short string which can be used in a list view. | |
| QString | serializeToLine () const |
| Output the location as a string ready to be stored in the user_location file. | |
Static Public Member Functions | |
| static StelLocation | createFromLine (const QString &line) |
| Parse a location from a line serialization. | |
Public Attributes | |
| QString | name |
| Location/city name. | |
| QString | country |
| English country name or empty string. | |
| QString | state |
| State/region name (usefull if 2 locations of the same country have the same name). | |
| QString | planetName |
| English planet name. | |
| float | longitude |
| Longitude in degree. | |
| float | latitude |
| Latitude in degree. | |
| int | altitude |
| Altitude in meter. | |
| float | bortleScaleIndex |
| Light pollution index following Bortle scale. | |
| QString | landscapeKey |
| A hint for associating a landscape to the location. | |
| int | population |
| Population in number of inhabitants. | |
| QChar | role |
| Location role code C/B=Capital, R=Regional capital, N=Normal city, O=Observatory, L=lander, I=spacecraft impact, A=spacecraft crash. | |
| bool | isUserLocation |
| Used privately by the StelLocationMgr. | |
Store the informations for a location on a planet.
| static StelLocation StelLocation::createFromLine | ( | const QString & | line | ) | [static] |
Parse a location from a line serialization.
| QString StelLocation::getID | ( | ) | const [inline] |
Return a short string which can be used in a list view.
| QString StelLocation::serializeToLine | ( | ) | const |
Output the location as a string ready to be stored in the user_location file.
Altitude in meter.
Light pollution index following Bortle scale.
| QString StelLocation::country |
English country name or empty string.
Used privately by the StelLocationMgr.
| QString StelLocation::landscapeKey |
A hint for associating a landscape to the location.
| float StelLocation::latitude |
Latitude in degree.
| float StelLocation::longitude |
Longitude in degree.
| QString StelLocation::name |
Location/city name.
| QString StelLocation::planetName |
English planet name.
Population in number of inhabitants.
| QChar StelLocation::role |
Location role code C/B=Capital, R=Regional capital, N=Normal city, O=Observatory, L=lander, I=spacecraft impact, A=spacecraft crash.
| QString StelLocation::state |
State/region name (usefull if 2 locations of the same country have the same name).
1.6.3