Marble
8 #include "PlanetFactory.h"
9 #include "MarbleDebug.h"
10 #include "MarbleGlobal.h"
11 #include "MarbleColors.h"
13 #include "src/lib/astro/solarsystem.h"
25 qreal C_1, C_2, C_3, C_4, C_5, C_6;
28 qreal theta_0, theta_1;
36 C_1(0.0), C_2(0.0), C_3(0.0), C_4(0.0), C_5(0.0), C_6(0.0),
37 Pi(0.0), epsilon(0.0),
38 theta_0(0.0), theta_1(0.0),
51 : d( new PlanetPrivate )
56 Planet::Planet(
const QString&
id )
57 : d( new PlanetPrivate )
63 Planet::Planet(
const Planet& other )
64 : d( new PlanetPrivate )
80 qreal Planet::M_0()
const
84 qreal Planet::M_1()
const
90 qreal Planet::C_1()
const
94 qreal Planet::C_2()
const
98 qreal Planet::C_3()
const
102 qreal Planet::C_4()
const
106 qreal Planet::C_5()
const
110 qreal Planet::C_6()
const
116 qreal Planet::Pi()
const
122 qreal Planet::epsilon()
const
128 qreal Planet::theta_0()
const
132 qreal Planet::theta_1()
const
138 qreal Planet::radius()
const
143 qreal Planet::twilightZone()
const
145 return d->twilightZone;
159 void Planet::sunPosition(qreal &lon, qreal &lat,
const QDateTime &dateTime)
const
166 const QString pname = d->id.
at(0).
toUpper() + d->id.right(d->id.size() - 1);
172 sys.getSun(ra, decl);
176 sys.getPlanetographic(ra, decl, _lon, _lat);
178 lon = _lon * DEG2RAD;
179 lat = _lat * DEG2RAD;
183 void Planet::setM_0( qreal M_0 )
187 void Planet::setM_1( qreal M_1 )
192 void Planet::setC_1( qreal C_1 )
196 void Planet::setC_2( qreal C_2 )
200 void Planet::setC_3( qreal C_3 )
204 void Planet::setC_4( qreal C_4 )
208 void Planet::setC_5( qreal C_5 )
212 void Planet::setC_6( qreal C_6 )
217 void Planet::setPi( qreal Pi )
222 void Planet::setEpsilon( qreal epsilon )
224 d->epsilon = epsilon;
227 void Planet::setTheta_0( qreal theta_0 )
229 d->theta_0 = theta_0;
231 void Planet::setTheta_1( qreal theta_1 )
233 d->theta_1 = theta_1;
236 void Planet::setRadius( qreal radius )
241 void Planet::setTwilightZone(qreal twilightZone)
243 d->twilightZone = twilightZone;
246 void Planet::setName(
const QString& name )
251 void Planet::setId(
const QString&
id )
267 Planet& Planet::operator=(
const Planet& rhs)
275 bool Planet::hasAtmosphere()
const
277 return d->atmosphere;
280 void Planet::setHasAtmosphere(
bool enabled)
282 d->atmosphere = enabled;
285 QColor Planet::atmosphereColor()
const
287 return d->atmosphereColor;
290 void Planet::setAtmosphereColor(
const QColor &color)
292 d->atmosphereColor = color;
static QString localizedName(const QString &id)
Returns a localized name of the planet with the given ID.
QChar toUpper() const const
QByteArray toLatin1() const const
static Planet construct(const QString &id)
Creates the planet with the given ID, or one with default values if ID is not among planetList()
static QList< QString > planetList()
Provides a list of known planet IDs.
Binds a QML item to a specific geodetic location in screen coordinates.
QString name(StandardShortcut id)
const QChar at(int position) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.