Marble

PlanetFactory.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2009 Henry de Valence <hdevalence@gmail.com>
4// SPDX-FileCopyrightText: 2009 David Roberts <dvdr18@gmail.com>
5// SPDX-FileCopyrightText: 2012 Mohammed Nafees <nafees.technocool@gmail.com>
6// SPDX-FileCopyrightText: 2014 Dennis Nienhüser <nienhueser@kde.org>
7
8#ifndef MARBLE_PLANETFACTORY_H
9#define MARBLE_PLANETFACTORY_H
10
11#include "marble_export.h"
12
13#include <QList>
14
15class QString;
16
17namespace Marble
18{
19
20class Planet;
21
22/**
23 * @brief The PlanetFactory class provides static methods to construct any planet known to Marble
24 */
25class MARBLE_EXPORT PlanetFactory
26{
27public:
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.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.