Kstars

horizonnode.h
1/*
2 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
3 SPDX-License-Identifier: GPL-2.0-or-later
4*/
5
6#pragma once
7
8#include "skynode.h"
9
10class 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 */
20class HorizonNode : public SkyNode
21{
22 public:
23 /** @short Constructor */
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};
This node acts as a parent of nodes that comprise horizon and both filled and non-filled ground.
Definition horizonnode.h:21
virtual void update() override
Update child nodes based on user settings (filled/non-filled ground) and their visibility.
HorizonNode()
Constructor.
virtual void hide() override
hides all child nodes (sets opacity of m_opacity to 0)
A SkyOpacityNode derived class used for drawing of polygons (both filled and non-filled)
Definition polynode.h:23
Provides virtual functions for update of coordinates and nodes hiding.
Definition skynode.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.