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 )
56Planet::Planet(
const QString&
id )
57 : d( new PlanetPrivate )
59 *
this = PlanetFactory::construct(
id );
63Planet::Planet(
const Planet& other )
64 : d( new PlanetPrivate )
80qreal Planet::M_0()
const
84qreal Planet::M_1()
const
90qreal Planet::C_1()
const
94qreal Planet::C_2()
const
98qreal Planet::C_3()
const
102qreal Planet::C_4()
const
106qreal Planet::C_5()
const
110qreal Planet::C_6()
const
116qreal Planet::Pi()
const
122qreal Planet::epsilon()
const
128qreal Planet::theta_0()
const
132qreal Planet::theta_1()
const
138qreal Planet::radius()
const
143qreal Planet::twilightZone()
const
145 return d->twilightZone;
159void 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;
183void Planet::setM_0( qreal M_0 )
187void Planet::setM_1( qreal M_1 )
192void Planet::setC_1( qreal C_1 )
196void Planet::setC_2( qreal C_2 )
200void Planet::setC_3( qreal C_3 )
204void Planet::setC_4( qreal C_4 )
208void Planet::setC_5( qreal C_5 )
212void Planet::setC_6( qreal C_6 )
217void Planet::setPi( qreal Pi )
222void Planet::setEpsilon( qreal epsilon )
224 d->epsilon = epsilon;
227void Planet::setTheta_0( qreal theta_0 )
229 d->theta_0 = theta_0;
231void Planet::setTheta_1( qreal theta_1 )
233 d->theta_1 = theta_1;
236void Planet::setRadius( qreal radius )
241void Planet::setTwilightZone(qreal twilightZone)
243 d->twilightZone = twilightZone;
246void Planet::setName(
const QString& name )
251void Planet::setId(
const QString&
id )
259 return PlanetFactory::localizedName(
id );
264 return PlanetFactory::planetList();
267Planet& Planet::operator=(
const Planet& rhs)
275bool Planet::hasAtmosphere()
const
277 return d->atmosphere;
280void Planet::setHasAtmosphere(
bool enabled)
282 d->atmosphere = enabled;
285QColor Planet::atmosphereColor()
const
287 return d->atmosphereColor;
290void Planet::setAtmosphereColor(
const QColor &color)
292 d->atmosphereColor = color;
QString name(StandardShortcut 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