File indexing completed on 2025-01-19 09:46:00
0001 /* 0002 SPDX-FileCopyrightText: 2005 Jason Harris <kstars@30doradus.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "pointlistcomponent.h" 0008 0009 #include "kstarsdata.h" 0010 #include "skyobjects/skypoint.h" 0011 0012 PointListComponent::PointListComponent(SkyComposite *parent) : SkyComponent(parent) 0013 { 0014 } 0015 0016 void PointListComponent::update(KSNumbers *num) 0017 { 0018 if (!selected()) 0019 return; 0020 0021 KStarsData *data = KStarsData::Instance(); 0022 0023 for (auto &p : pointList()) 0024 { 0025 if (num) 0026 p->updateCoords(num); 0027 0028 p->EquatorialToHorizontal(data->lst(), data->geo()->lat()); 0029 } 0030 }