Kstars

eclipticitem.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 Ecliptic;
11 
12 /**
13  * @class EclipticItem
14  *
15  * @short Represents Ecliptic in SkyMapLite
16  * @author Artem Fedoskin
17  * @version 1.0
18  */
19 class EclipticItem : public SkyItem
20 {
21  public:
22  /**
23  * @short Constructor. Creates TrixelNodes for lines and LabelNodes for compass labels
24  * @param eclipticComp Ecliptic that needs to be represented in SkyMapLite
25  * @param rootNode parent RootNode that instantiated this object
26  */
27  EclipticItem(Ecliptic *eclipticComp, RootNode *rootNode);
28 
29  /** @short updates positions of lines and compass labels */
30  virtual void update() override;
31 
32  private:
33  Ecliptic *m_eclipticComp { nullptr };
34 
35  //Holds compass labels each associated with SkyPoint that is coordinate of this label
36  QMap<SkyPoint *, LabelNode *> m_compassLabels;
37 };
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
RootNode * rootNode()
Definition: skyitem.h:57
Represents Ecliptic in SkyMapLite.
Definition: eclipticitem.h:19
virtual void update() override
updates positions of lines and compass labels
EclipticItem(Ecliptic *eclipticComp, RootNode *rootNode)
Constructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.