Kstars

pointlistcomponent.h
1/*
2 SPDX-FileCopyrightText: 2005 Jason Harris <kstars@30doradus.org>
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
17class 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};
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyPoints.
void update(KSNumbers *num=nullptr) override
Update the sky positions of this component.
SkyComponent represents an object on the sky map.
SkyComposite * parent()
SkyComposite is a kind of container class for SkyComponent objects.
The sky coordinates of a point in the sky.
Definition skypoint.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.