Kstars

horizonitem.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 "skyitem.h"
9
11class 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 */
22class 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};
Currently this class is not used anywhere.
Represents the horizon on the sky map.
Handles representation of HorizonComponent in SkyMapLite (lines, filled polygon and compass labels).
Definition horizonitem.h:23
HorizonItem(HorizonComponent *hComp, RootNode *rootNode)
Constructor.
virtual void update()
Call update() of HorizonNode and update/hide compass labels based on their visibility.
void setHorizonComp(HorizonComponent *hComp)
setter for m_horizonComp
Definition horizonitem.h:36
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
This is an interface for implementing SkyItems that represent SkyComponent derived objects on the Sky...
Definition skyitem.h:30
RootNode * rootNode()
Definition skyitem.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.