Kstars

earthshadowcomponent.h
1/*
2 SPDX-FileCopyrightText: 2018 Valentin Boettcher <valentin@boettcher.cf (do not hesitate to contact)>
3 matrix : @hiro98@tchncs.de
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
12class SkyComposite;
13class SkyPainter;
14
15/**
16 * @brief The EarthShadowComponent class
17 * @short A simple skycomponent for the KSEarthShadow.
18 */
20{
21public:
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
29private:
30 KSEarthShadow * m_shadow;
31 bool m_up_to_date;
32};
The EarthShadowComponent class.
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
void update(KSNumbers *num) override
Update the sky position(s) of this component.
A class that manages the calculation of the earths shadow (in moon distance) as a 'virtual' skyobject...
bool shouldUpdate()
The earths shadow on the moon appears only at new moon so calculating it on other occasions is rather...
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
SkyComponent represents an object on the sky map.
SkyComposite * parent()
SkyComposite is a kind of container class for SkyComponent objects.
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.