Kstars

pointlistcomponent.h
1 /*
2  SPDX-FileCopyrightText: 2005 Jason Harris <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "skycomponent.h"
10 
11 #include <QList>
12 
13 #include <memory>
14 
15 #define NCIRCLE 360 //number of points used to define equator, ecliptic and horizon
16 
17 class SkyPoint;
18 
19 /**
20  * @class PointListComponent
21  *
22  * An abstract parent class, to be inherited by SkyComponents that store a QList of SkyPoints.
23  *
24  * @author Jason Harris
25  * @version 0.1
26  */
28 {
29  public:
31 
32  virtual ~PointListComponent() override = default;
33 
34  /**
35  * @short Update the sky positions of this component.
36  *
37  * This function usually just updates the Horizontal (Azimuth/Altitude)
38  * coordinates of the objects in this component. However, the precession
39  * and nutation must also be recomputed periodically. Requests to do
40  * so are sent through the doPrecess parameter.
41  * @p num Pointer to the KSNumbers object
42  * @note By default, the num parameter is nullptr, indicating that
43  * Precession/Nutation computation should be skipped; this computation
44  * is only occasionally required.
45  */
46  void update(KSNumbers *num = nullptr) override;
47 
48  QList<std::shared_ptr<SkyPoint>> &pointList() { return m_PointList; }
49 
50  private:
52 };
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
SkyComposite * parent()
Definition: skycomponent.h:137
Store several time-dependent astronomical quantities.
Definition: ksnumbers.h:42
void update(KSNumbers *num=nullptr) override
Update the sky positions of this component.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 04:06:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.