Kstars

horizonnode.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 "skynode.h"
9 
10 class PolyNode;
11 
12 /**
13  * @class HorizonNode
14  * @short This node acts as a parent of nodes that comprise horizon and both filled and non-filled
15  * ground
16  *
17  * @version 1.0
18  * @author Artem Fedoskin
19  */
20 class HorizonNode : public SkyNode
21 {
22  public:
23  /** @short Constructor */
24  HorizonNode();
25 
26  /** @short Update child nodes based on user settings (filled/non-filled ground) and their visibility */
27  virtual void update() override;
28  virtual void hide() override;
29 
30  private:
31  PolyNode *m_polygonNode { nullptr };
32 };
virtual void hide() override
hides all child nodes (sets opacity of m_opacity to 0)
Definition: horizonnode.cpp:50
virtual void update() override
Update child nodes based on user settings (filled/non-filled ground) and their visibility.
Definition: horizonnode.cpp:13
A SkyOpacityNode derived class used for drawing of polygons (both filled and non-filled)
Definition: polynode.h:22
HorizonNode()
Constructor.
Definition: horizonnode.cpp:8
This node acts as a parent of nodes that comprise horizon and both filled and non-filled ground.
Definition: horizonnode.h:20
Provides virtual functions for update of coordinates and nodes hiding.
Definition: skynode.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.