Marble::PlanetFactory

Search for usage in LXR

Marble::PlanetFactory Class Reference

#include <PlanetFactory.h>

Static Public Member Functions

static Planet construct (const QString &id)
 
static QString localizedName (const QString &id)
 
static QList< QStringplanetList ()
 

Detailed Description

The PlanetFactory class provides static methods to construct any planet known to Marble.

Definition at line 25 of file PlanetFactory.h.

Member Function Documentation

◆ construct()

Planet Marble::PlanetFactory::construct ( const QString id)
static

Creates the planet with the given ID, or one with default values if ID is not among planetList()

Definition at line 36 of file PlanetFactory.cpp.

◆ localizedName()

QString Marble::PlanetFactory::localizedName ( const QString id)
static

Returns a localized name of the planet with the given ID.

Definition at line 226 of file PlanetFactory.cpp.

◆ planetList()

QList< QString > Marble::PlanetFactory::planetList ( )
static

Provides a list of known planet IDs.

Definition at line 16 of file PlanetFactory.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Dec 6 2022 03:54:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.