Kstars

horizoncomponent.h
1 /*
2  SPDX-FileCopyrightText: 2005 Thomas Kabelmann <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "pointlistcomponent.h"
10 
11 class SkyComposite;
12 class SkyMap;
13 class 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 };
HorizonComponent(SkyComposite *parent)
Constructor.
SkyComposite * parent()
Definition: skycomponent.h:137
void update(KSNumbers *) override
Update the sky position(s) of this component.
Store several time-dependent astronomical quantities.
Definition: ksnumbers.h:42
Draws things on the sky, without regard to backend.
Definition: skypainter.h:37
void draw(SkyPainter *skyp) override
Draw the Horizon on the Sky map.
Canvas widget for displaying the sky bitmap; also handles user interaction events.
Definition: skymap.h:52
bool selected() override
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:01:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.