Kstars

noprecessindex.cpp
1/*
2 SPDX-FileCopyrightText: 2007 James B. Bowlin <kstars@30doradus.org>
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}
const CachingDms * lat() const
Definition geolocation.h:70
KStarsData is the backbone of KStars.
Definition kstarsdata.h:72
CachingDms * lst()
Definition kstarsdata.h:224
GeoLocation * geo()
Definition kstarsdata.h:230
Contains almost all the code needed for indexing and drawing and clipping lines and polygons.
A simple data container used by LineListIndex.
Definition linelist.h:25
SkyList * points()
return the list of points for iterating or appending (or whatever).
Definition linelist.h:33
void JITupdate(LineList *lineList) override
@ short override JITupdate so we don't perform the precession correction, only rotation.
NoPrecessIndex(SkyComposite *parent, const QString &name)
Constructor.
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 Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.