8#include "MarbleColors.h"
9#include "MarbleDebug.h"
10#include "MarbleGlobal.h"
11#include "PlanetFactory.h"
13#include "src/lib/astro/solarsystem.h"
24 qreal C_1, C_2, C_3, C_4, C_5, C_6;
27 qreal theta_0, theta_1;
58 : d(new PlanetPrivate)
63Planet::Planet(
const QString &
id)
64 : d(new PlanetPrivate)
66 *
this = PlanetFactory::construct(
id);
70Planet::Planet(
const Planet &other)
71 : d(new PlanetPrivate)
86qreal Planet::M_0()
const
90qreal Planet::M_1()
const
96qreal Planet::C_1()
const
100qreal Planet::C_2()
const
104qreal Planet::C_3()
const
108qreal Planet::C_4()
const
112qreal Planet::C_5()
const
116qreal Planet::C_6()
const
122qreal Planet::Pi()
const
128qreal Planet::epsilon()
const
134qreal Planet::theta_0()
const
138qreal Planet::theta_1()
const
144qreal Planet::radius()
const
149qreal Planet::twilightZone()
const
151 return d->twilightZone;
164void Planet::sunPosition(qreal &lon, qreal &lat,
const QDateTime &dateTime)
const
167 sys.setCurrentMJD(dateTime.
date().
year(),
173 const QString pname = d->id.
at(0).
toUpper() + d->id.right(d->id.size() - 1);
179 sys.getSun(ra, decl);
183 sys.getPlanetographic(ra, decl, _lon, _lat);
185 lon = _lon * DEG2RAD;
186 lat = _lat * DEG2RAD;
190void Planet::setM_0(qreal M_0)
194void Planet::setM_1(qreal M_1)
199void Planet::setC_1(qreal C_1)
203void Planet::setC_2(qreal C_2)
207void Planet::setC_3(qreal C_3)
211void Planet::setC_4(qreal C_4)
215void Planet::setC_5(qreal C_5)
219void Planet::setC_6(qreal C_6)
224void Planet::setPi(qreal Pi)
229void Planet::setEpsilon(qreal epsilon)
231 d->epsilon = epsilon;
234void Planet::setTheta_0(qreal theta_0)
236 d->theta_0 = theta_0;
238void Planet::setTheta_1(qreal theta_1)
240 d->theta_1 = theta_1;
243void Planet::setRadius(qreal radius)
248void Planet::setTwilightZone(qreal twilightZone)
250 d->twilightZone = twilightZone;
253void Planet::setName(
const QString &name)
258void Planet::setId(
const QString &
id)
265 return PlanetFactory::localizedName(
id);
270 return PlanetFactory::planetList();
273Planet &Planet::operator=(
const Planet &rhs)
281bool Planet::hasAtmosphere()
const
283 return d->atmosphere;
286void Planet::setHasAtmosphere(
bool enabled)
288 d->atmosphere = enabled;
291QColor Planet::atmosphereColor()
const
293 return d->atmosphereColor;
296void Planet::setAtmosphereColor(
const QColor &color)
298 d->atmosphereColor = color;
QString name(GameStandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
char32_t toUpper(char32_t ucs4)
const QChar at(qsizetype position) const const
QByteArray toLatin1() const const