Kstars

eclipticitem.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
10class Ecliptic;
11
12/**
13 * @class EclipticItem
14 *
15 * @short Represents Ecliptic in SkyMapLite
16 * @author Artem Fedoskin
17 * @version 1.0
18 */
19class 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};
Represents Ecliptic in SkyMapLite.
EclipticItem(Ecliptic *eclipticComp, RootNode *rootNode)
Constructor.
virtual void update() override
updates positions of lines and compass labels
Represents the ecliptic on the sky map.
Definition ecliptic.h:20
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 Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.