Kstars

earthshadowcomponent.h
1 /*
2  SPDX-FileCopyrightText: 2018 Valentin Boettcher <[email protected] (do not hesitate to contact)>
3  matrix : @[email protected]
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #pragma once
9 #include "skycomponent.h"
10 #include "ksearthshadow.h" // in here for inline definitions
11 
12 class SkyComposite;
13 class SkyPainter;
14 
15 /**
16  * @brief The EarthShadowComponent class
17  * @short A simple skycomponent for the KSEarthShadow.
18  */
20 {
21 public:
23 
24  void update(KSNumbers *num) override;
25  void updateSolarSystemBodies(KSNumbers *num) override;
26  bool selected() override { return m_shadow->shouldUpdate(); }
27  void draw(SkyPainter *skyp) override;
28 
29 private:
30  KSEarthShadow * m_shadow;
31  bool m_up_to_date;
32 };
SkyComposite * parent()
Definition: skycomponent.h:137
A class that manages the calculation of the earths shadow (in moon distance) as a 'virtual' skyobject...
Definition: ksearthshadow.h:27
Store several time-dependent astronomical quantities.
Definition: ksnumbers.h:42
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Draws things on the sky, without regard to backend.
Definition: skypainter.h:37
The EarthShadowComponent class.
bool shouldUpdate()
The earths shadow on the moon appears only at new moon so calculating it on other occasions is rather...
void update(KSNumbers *num) override
Update the sky position(s) of this component.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.