Kstars

pointlistcomponent.cpp
1/*
2 SPDX-FileCopyrightText: 2005 Jason Harris <kstars@30doradus.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "pointlistcomponent.h"
8
9#include "kstarsdata.h"
10#include "skyobjects/skypoint.h"
11
12PointListComponent::PointListComponent(SkyComposite *parent) : SkyComponent(parent)
13{
14}
15
17{
18 if (!selected())
19 return;
20
21 KStarsData *data = KStarsData::Instance();
22
23 for (auto &p : pointList())
24 {
25 if (num)
26 p->updateCoords(num);
27
28 p->EquatorialToHorizontal(data->lst(), data->geo()->lat());
29 }
30}
const CachingDms * lat() const
Definition geolocation.h:70
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
KStarsData is the backbone of KStars.
Definition kstarsdata.h:72
CachingDms * lst()
Definition kstarsdata.h:224
GeoLocation * geo()
Definition kstarsdata.h:230
void update(KSNumbers *num=nullptr) override
Update the sky positions of this component.
SkyComponent represents an object on the sky map.
virtual bool selected()
SkyComposite is a kind of container class for SkyComponent objects.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.