File indexing completed on 2024-04-21 03:44:16

0001 /*
0002     SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #pragma once
0007 
0008 #include "skynode.h"
0009 
0010 class PolyNode;
0011 
0012 /**
0013  * @class HorizonNode
0014  * @short This node acts as a parent of nodes that comprise horizon and both filled and non-filled
0015  * ground
0016  *
0017  * @version 1.0
0018  * @author Artem Fedoskin
0019  */
0020 class HorizonNode : public SkyNode
0021 {
0022   public:
0023     /** @short Constructor */
0024     HorizonNode();
0025 
0026     /** @short Update child nodes based on user settings (filled/non-filled ground) and their visibility */
0027     virtual void update() override;
0028     virtual void hide() override;
0029 
0030   private:
0031     PolyNode *m_polygonNode { nullptr };
0032 };