Marble

PlanetFactory.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2009 Henry de Valence <[email protected]>
4 // SPDX-FileCopyrightText: 2009 David Roberts <[email protected]>
5 // SPDX-FileCopyrightText: 2012 Mohammed Nafees <[email protected]>
6 // SPDX-FileCopyrightText: 2014 Dennis Nienhüser <[email protected]>
7 
8 #ifndef MARBLE_PLANETFACTORY_H
9 #define MARBLE_PLANETFACTORY_H
10 
11 #include "marble_export.h"
12 
13 #include <QList>
14 
15 class QString;
16 
17 namespace Marble
18 {
19 
20 class Planet;
21 
22 /**
23  * @brief The PlanetFactory class provides static methods to construct any planet known to Marble
24  */
25 class MARBLE_EXPORT PlanetFactory
26 {
27 public:
28  /** Provides a list of known planet IDs */
29  static QList<QString> planetList();
30 
31  /** Creates the planet with the given ID, or one with default values if ID is not among planetList() */
32  static Planet construct( const QString &id );
33 
34  /** Returns a localized name of the planet with the given ID */
35  static QString localizedName( const QString &id );
36 };
37 
38 }
39 
40 #endif
The PlanetFactory class provides static methods to construct any planet known to Marble.
Definition: PlanetFactory.h:25
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.