Kstars

solarsystemlistcomponent.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 "listcomponent.h"
10
11class KSPlanet;
13
14/**
15 * @class SolarSystemListComponent
16 *
17 * @author Jason Harris
18 * @version 1.0
19 */
21{
22 public:
24
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};
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
A subclass of KSPlanetBase for seven of the major planets in the solar system (Earth and Pluto have t...
Definition ksplanet.h:33
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyObjects.
SkyComposite * parent()
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
The solar system composite manages all planets, asteroids and comets.
void drawTrails(SkyPainter *skyp) override
Draw trails for objects.
void update(KSNumbers *num) override
Update the sky positions of this component.
void updateSolarSystemBodies(KSNumbers *num) override
Update the coordinates of the solar system bodies in this component.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 12:06:20 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.