File indexing completed on 2024-12-08 03:31:20
0001 /* 0002 SPDX-FileCopyrightText: 2007 James B. Bowlin <kstars@30doradus.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "noprecessindex.h" 0008 #include "Options.h" 0009 #include "skyobjects/skypoint.h" 0010 #include "kstarsdata.h" 0011 #include "linelist.h" 0012 0013 NoPrecessIndex::NoPrecessIndex(SkyComposite *parent, const QString &name) : LineListIndex(parent, name) 0014 { 0015 } 0016 0017 // Don't precess the points, just account for the Earth's rotation 0018 void NoPrecessIndex::JITupdate(LineList *lineList) 0019 { 0020 KStarsData *data = KStarsData::Instance(); 0021 lineList->updateID = data->updateID(); 0022 SkyList *points = lineList->points(); 0023 0024 for (const auto &point : *points) 0025 { 0026 point->EquatorialToHorizontal(data->lst(), data->geo()->lat()); 0027 } 0028 }