Kstars

solarsystemlistcomponent.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 "listcomponent.h"
10 
11 class KSPlanet;
13 
14 /**
15  * @class SolarSystemListComponent
16  *
17  * @author Jason Harris
18  * @version 1.0
19  */
21 {
22  public:
24 
25  ~SolarSystemListComponent() override;
26 
27  void update(KSNumbers *num) override;
28 
29  /**
30  * @short Update the coordinates of the solar system bodies in this component.
31  *
32  * This function updates the position of the moving solar system bodies.
33  * @p data Pointer to the KStarsData object
34  * @p num Pointer to the KSNumbers object
35  */
36  void updateSolarSystemBodies(KSNumbers *num) override;
37 
38  protected:
39  void drawTrails(SkyPainter *skyp) override;
40 
41  private:
42  KSPlanet *m_Earth { nullptr };
43 };
void updateSolarSystemBodies(KSNumbers *num) override
Update the coordinates of the solar system bodies in this component.
void drawTrails(SkyPainter *skyp) override
Draw trails for objects.
SkyComposite * parent()
Definition: skycomponent.h:137
Store several time-dependent astronomical quantities.
Definition: ksnumbers.h:42
Draws things on the sky, without regard to backend.
Definition: skypainter.h:37
Provides necessary information about objects in the solar system.
Definition: ksplanet.h:32
void update(KSNumbers *num) 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 Fri Aug 12 2022 04:00:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.