Kstars
planetmoonscomponent.cpp
2 SPDX-FileCopyrightText: 2009 Vipul Kumar Singh Médéric Boquien <vipulkrsingh@gmail.com, mboquien@free.fr>
19PlanetMoonsComponent::PlanetMoonsComponent(SkyComposite *p, SolarSystemSingleComponent *planetComponent,
59 pmoons->findPosition(num, m_Planet->planet(), dynamic_cast<KSSun *>(parent()->findByName(i18n("Sun"))));
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
A subclass of TrailObject that provides additional information needed for most solar system objects.
Definition ksplanetbase.h:50
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Find the SkyObject nearest the given SkyPoint.
Definition planetmoonscomponent.cpp:86
PlanetMoonsComponent(SkyComposite *parent, SolarSystemSingleComponent *pla, KSPlanetBase::Planets &planet)
Constructor.
Definition planetmoonscomponent.cpp:19
void update(KSNumbers *num) override
Update the sky position(s) of this component.
Definition planetmoonscomponent.cpp:47
SkyObject * findByName(const QString &name, bool exact=true) override
Definition planetmoonscomponent.cpp:62
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition planetmoonscomponent.cpp:107
void drawTrails(SkyPainter *skyp) override
Draw trails for objects.
Definition planetmoonscomponent.cpp:154
KSPlanetBase * getPlanet() const
Return pointer to stored planet object.
SkyComposite is a kind of container class for SkyComponent objects.
Definition skycomposite.h:30
static void AddLabel(SkyObject *obj, label_t type)
static version of addLabel() below.
Definition skylabeler.h:135
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
virtual bool drawPointSource(const SkyPoint *loc, float mag, char sp='A')=0
Draw a point source (e.g., a star).
dms angularDistanceTo(const SkyPoint *sp, double *const positionAngle=nullptr) const
Computes the angular distance between two SkyObjects.
Definition skypoint.cpp:899
This class encapsulates some methods which are shared between all single-object solar system componen...
Definition solarsystemsinglecomponent.h:29
KSPlanetBase * planet()
Return pointer to stored planet object.
Definition solarsystemsinglecomponent.h:37
bool selected() override
Definition solarsystemsinglecomponent.cpp:53
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition solarsystemsinglecomponent.cpp:111
QString i18n(const char *text, const TYPE &arg...)
void append(QList< T > &&value)
int compare(QLatin1StringView s1, const QString &s2, Qt::CaseSensitivity cs)
CaseInsensitive
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.