Kstars

horizonitem.h
1 /*
2  SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
3  SPDX-License-Identifier: GPL-2.0-or-later
4 */
5 
6 #pragma once
7 
8 #include "skyitem.h"
9 
10 class HorizonComponent;
11 class GuideLabelNode;
12 
13 /**
14  * @class HorizonItem
15  *
16  * Handles representation of HorizonComponent in SkyMapLite (lines, filled polygon and compass
17  * labels).
18  *
19  * @author Artem Fedoskin
20  * @version 1.0
21  */
22 class HorizonItem : public SkyItem
23 {
24  public:
25  /**
26  * @short Constructor.
27  * @param hComp pointer to HorizonComponent which HorizonItem represents in SkyMapLite
28  * @param rootNode parent RootNode that instantiated this object
29  */
31 
32  /**
33  * @short setter for m_horizonComp
34  * @param hComp pointer to HorizonComponent
35  */
36  inline void setHorizonComp(HorizonComponent *hComp) { m_horizonComp = hComp; }
37 
38  /**
39  * @short Call update() of HorizonNode and update/hide compass labels based on their visibility
40  */
41  virtual void update();
42 
43  private:
44  HorizonComponent *m_horizonComp { nullptr };
45  QMap<SkyPoint *, LabelNode *> m_compassLabels;
46 };
A base class that is used for displaying SkyComponents on SkyMapLite.
Definition: skyitem.h:29
A container for nodes that holds collection of textures for stars and provides clipping.
Definition: rootnode.h:59
HorizonItem(HorizonComponent *hComp, RootNode *rootNode)
Constructor.
Definition: horizonitem.cpp:15
virtual void update()
Call update() of HorizonNode and update/hide compass labels based on their visibility.
Definition: horizonitem.cpp:44
void setHorizonComp(HorizonComponent *hComp)
setter for m_horizonComp
Definition: horizonitem.h:36
RootNode * rootNode()
Definition: skyitem.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:58:28 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.