Kstars

horizoncomponent.h
1/*
2 SPDX-FileCopyrightText: 2005 Thomas Kabelmann <thomas.kabelmann@gmx.de>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pointlistcomponent.h"
10
11class SkyComposite;
12class SkyMap;
13class KSNumbers;
14
15/**
16 * @class HorizonComponent
17 *
18 * Represents the horizon on the sky map.
19 *
20 * @author Thomas Kabelmann
21 * @version 0.1
22 */
24{
25 public:
26 /**
27 * @short Constructor
28 *
29 * @p parent Pointer to the parent SkyComposite object
30 */
32
33 virtual ~HorizonComponent() override = default;
34
35 /**
36 * @short Draw the Horizon on the Sky map
37 *
38 * @p map Pointer to the SkyMap object
39 * @p psky Reference to the QPainter on which to paint
40 */
41 void draw(SkyPainter *skyp) override;
42
43 void update(KSNumbers *) override;
44
45 bool selected() override;
46
47 private:
48 void drawCompassLabels();
49};
Represents the horizon on the sky map.
bool selected() override
void update(KSNumbers *) override
Update the sky position(s) of this component.
HorizonComponent(SkyComposite *parent)
Constructor.
void draw(SkyPainter *skyp) override
Draw the Horizon on the Sky map.
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.
SkyComposite * parent()
SkyComposite is a kind of container class for SkyComponent objects.
This is the canvas on which the sky is painted.
Definition skymap.h:54
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 Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.