Kstars

equatoritem.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 "equator.h"
9#include "../skyitem.h"
10
11class KSAsteroid;
12class LineListIndex;
13
14/**
15 * @class EquatorItem
16 *
17 * @short Represents Equator in SkyMapLite
18 *
19 * @author Artem Fedoskin
20 * @version 1.0
21 */
22class EquatorItem : public SkyItem
23{
24 public:
25 /**
26 * @short Constructor. Creates TrixelNodes for lines and LabelNodes for compass labels
27 * @param equatorComp Equator that needs to be represented in SkyMapLite
28 * @param rootNode parent RootNode that instantiated this object
29 */
30
32
33 /**
34 * @short updates positions of lines and compass labels
35 */
36 virtual void update();
37
38 private:
39 Equator *m_equatorComp { nullptr };
40 //Holds compass labels each associated with SkyPoint that is coordinate of this label
41 QMap<SkyPoint *, LabelNode *> m_compassLabels;
42};
Represents Equator in SkyMapLite.
Definition equatoritem.h:23
EquatorItem(Equator *equatorComp, RootNode *rootNode)
Constructor.
virtual void update()
updates positions of lines and compass labels
Represents the equator on the sky map.
Definition equator.h:20
A subclass of KSPlanetBase that implements asteroids.
Definition ksasteroid.h:42
Contains almost all the code needed for indexing and drawing and clipping lines and polygons.
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 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.