Kstars

noprecessindex.cpp
1 /*
2  SPDX-FileCopyrightText: 2007 James B. Bowlin <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "noprecessindex.h"
8 #include "Options.h"
9 #include "skyobjects/skypoint.h"
10 #include "kstarsdata.h"
11 #include "linelist.h"
12 
14 {
15 }
16 
17 // Don't precess the points, just account for the Earth's rotation
19 {
20  KStarsData *data = KStarsData::Instance();
21  lineList->updateID = data->updateID();
22  SkyList *points = lineList->points();
23 
24  for (const auto &point : *points)
25  {
26  point->EquatorialToHorizontal(data->lst(), data->geo()->lat());
27  }
28 }
CachingDms * lst()
Definition: kstarsdata.h:223
NoPrecessIndex(SkyComposite *parent, const QString &name)
Constructor.
void JITupdate(LineList *lineList) override
@ short override JITupdate so we don't perform the precession correction, only rotation.
const CachingDms * lat() const
Definition: geolocation.h:70
GeoLocation * geo()
Definition: kstarsdata.h:229
SkyList * points()
return the list of points for iterating or appending (or whatever).
Definition: linelist.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:00:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.