Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

StelLocation Class Reference

Store the informations for a location on a planet. More...

#include <StelLocation.hpp>

List of all members.

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.

Detailed Description

Store the informations for a location on a planet.


Member Function Documentation

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.


Member Data Documentation

Altitude in meter.

Light pollution index following Bortle scale.

English country name or empty string.

Used privately by the StelLocationMgr.

A hint for associating a landscape to the location.

Latitude in degree.

Longitude in degree.

Location/city name.

English planet name.

Population in number of inhabitants.

Location role code C/B=Capital, R=Regional capital, N=Normal city, O=Observatory, L=lander, I=spacecraft impact, A=spacecraft crash.

State/region name (usefull if 2 locations of the same country have the same name).

Generated on Sat Aug 25 22:13:32 2012 for Stellarium by  doxygen 1.6.3