File indexing completed on 2024-04-21 14:46:44

0001 /*
0002     SPDX-FileCopyrightText: Vipul Kumar Singh <vipulkrsingh@gmail.com>
0003     SPDX-FileCopyrightText: Médéric Boquien <mboquien@free.fr>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include "planetmoons.h"
0009 
0010 #include "ksnumbers.h"
0011 #include "ksplanetbase.h"
0012 #include "kssun.h"
0013 #include "trailobject.h"
0014 
0015 #include <QDebug>
0016 
0017 PlanetMoons::~PlanetMoons()
0018 {
0019     qDeleteAll(Moon);
0020 }
0021 
0022 QString PlanetMoons::name(int id) const
0023 {
0024     return Moon[id]->translatedName();
0025 }
0026 
0027 void PlanetMoons::EquatorialToHorizontal(const dms *LST, const dms *lat)
0028 {
0029     int nmoons = nMoons();
0030 
0031     for (int i = 0; i < nmoons; ++i)
0032         moon(i)->EquatorialToHorizontal(LST, lat);
0033 }