Kstars
solarsystemsinglecomponent.cpp
29 SolarSystemSingleComponent::SolarSystemSingleComponent(SolarSystemComposite *parent, KSPlanetBase *kspb,
31 : SkyComponent(parent), visible(visibleMethod), m_isMoon(isMoon), m_Earth(parent->earth()), m_Planet(kspb)
37 objectLists(m_Planet->type()).append(QPair<QString, const SkyObject *>(m_Planet->name(), m_Planet));
42 objectLists(m_Planet->type()).append(QPair<QString, const SkyObject *>(m_Planet->longname(), m_Planet));
CaseInsensitive
void update(KSNumbers *num) override
update Only convert Equatorial to Horizontal coordinates given current time.
Definition: solarsystemsinglecomponent.cpp:79
static void AddLabel(SkyObject *obj, label_t type)
static version of addLabel() below.
Definition: skylabeler.h:135
void updateSolarSystemBodies(KSNumbers *num) override
updateSolarSystemBodies Update Equatorial & Horizontal coordinates.
Definition: solarsystemsinglecomponent.cpp:86
bool selected() override
Definition: solarsystemsinglecomponent.cpp:53
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
void findPosition(const KSNumbers *num, const CachingDms *lat=nullptr, const CachingDms *LST=nullptr, const KSPlanetBase *Earth=nullptr)
Find position, including correction for Figure-of-the-Earth.
Definition: ksplanetbase.cpp:109
Definition: kstarsdata.h:70
void EquatorialToHorizontal(const CachingDms *LST, const CachingDms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates,...
Definition: skypoint.cpp:77
Definition: solarsystemcomposite.h:30
SolarSystemSingleComponent(SolarSystemComposite *, KSPlanetBase *kspb, bool(*visibleMethod)(), bool isMoon=false)
Initialize visible method, minimum size and sizeScale.
Definition: solarsystemsinglecomponent.cpp:29
void updateTrail(dms *LST, const dms *lat)
update Horizontal coords of the trail
Definition: trailobject.cpp:45
void drawTrails(SkyPainter *skyp) override
Draw trails for objects.
Definition: solarsystemsinglecomponent.cpp:123
bool isEmpty() const const
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Find the SkyObject nearest the given SkyPoint.
Definition: solarsystemsinglecomponent.cpp:68
Definition: skycomponent.h:95
dms angularDistanceTo(const SkyPoint *sp, double *const positionAngle=nullptr) const
Computes the angular distance between two SkyObjects.
Definition: skypoint.cpp:899
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: solarsystemsinglecomponent.cpp:110
SkyObject * findByName(const QString &name, bool exact=true) override
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: solarsystemsinglecomponent.cpp:58
int compare(const QString &other, Qt::CaseSensitivity cs) const const
void updateMoons(KSNumbers *num) override
update Update Equatorial & Horizontal coordinates.
Definition: solarsystemsinglecomponent.cpp:101
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:04:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:04:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.