![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <StelLocation.hpp>
Public Member Functions | |
QString | getID () const |
QString | serializeToLine () const |
Static Public Member Functions | |
static StelLocation | createFromLine (const QString &line) |
Public Attributes | |
QString | name |
QString | country |
QString | state |
QString | planetName |
double | longitude |
double | latitude |
int | altitude |
float | bortleScaleIndex |
QString | landscapeKey |
int | population |
QChar | role |
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.
static StelLocation StelLocation::createFromLine | ( | const QString & | line | ) | [static] |
Parse a location from a line serialization.
QString StelLocation::name |
Location/city name.
QString StelLocation::country |
English country name or empty string.
QString StelLocation::state |
State/region name (usefull if 2 locations of the same country have the same name).
QString StelLocation::planetName |
English planet name.
double StelLocation::longitude |
Longitude in degree.
double StelLocation::latitude |
Latitude in degree.
Altitude in meter.
Light pollution index following Bortle scale.
QString StelLocation::landscapeKey |
A hint for associating a landscape to the location.
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.