Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · 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.
bool isUserLocation
 Used privately by the StelLocationMgr.

Detailed Description

Store the informations for a location on a planet.

Definition at line 26 of file StelLocation.hpp.


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.

Definition at line 32 of file StelLocation.hpp.

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.

Definition at line 56 of file StelLocation.hpp.

Light pollution index following Bortle scale.

Definition at line 58 of file StelLocation.hpp.

English country name or empty string.

Definition at line 46 of file StelLocation.hpp.

Used privately by the StelLocationMgr.

Definition at line 79 of file StelLocation.hpp.

A hint for associating a landscape to the location.

Definition at line 60 of file StelLocation.hpp.

Latitude in degree.

Definition at line 54 of file StelLocation.hpp.

Longitude in degree.

Definition at line 52 of file StelLocation.hpp.

Location/city name.

Definition at line 44 of file StelLocation.hpp.

English planet name.

Definition at line 50 of file StelLocation.hpp.

Population in number of inhabitants.

Definition at line 62 of file StelLocation.hpp.

Location role code.

Possible values:

  • C or B is a capital city
  • R is a regional capital
  • N is a normal city (any other type of settlement)
  • O is an observatory
  • L is a spacecraft lander
  • I is a spacecraft impact
  • A is a spacecraft crash
  • X is an unknown or user-defined location (the default value).

Definition at line 73 of file StelLocation.hpp.

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

Definition at line 48 of file StelLocation.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:45 2013 for Stellarium by  doxygen 1.6.3