Kstars

satellitesitem.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 KSComet;
11class SkyObject;
13
14/**
15 * @class SatellitesItem
16 * This class handles representation of satellites in SkyMapLite
17 *
18 * @author Artem Fedoskin
19 * @version 1.0
20 */
21
22class SatellitesItem : public SkyItem
23{
24 public:
25 /**
26 * @short Constructor
27 * @param satComp - pointer to SatellitesComponent that handles data
28 * @param rootNode parent RootNode that instantiates this object
29 */
30 explicit SatellitesItem(SatellitesComponent *satComp, RootNode *rootNode = nullptr);
31
32 /**
33 * @short recreates the node tree (deletes old nodes and appends new ones according to
34 * SatelliteGroups from SatellitesComponent::groups())
35 */
36 void recreateList();
37
38 /** Update positions and visibility of satellites */
39 virtual void update() override;
40
41 private:
42 SatellitesComponent *m_satComp { nullptr };
43};
A subclass of KSPlanetBase that implements comets.
Definition kscomet.h:44
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
Represents artificial satellites on the sky map.
This class handles representation of satellites in SkyMapLite.
virtual void update() override
Update positions and visibility of satellites.
SatellitesItem(SatellitesComponent *satComp, RootNode *rootNode=nullptr)
Constructor.
void recreateList()
recreates the node tree (deletes old nodes and appends new ones according to SatelliteGroups from Sat...
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
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.