Kstars

satellitesitem.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 KSComet;
11 class 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 
22 class 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 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
A subclass of KSPlanetBase that implements comets.
Definition: kscomet.h:43
SatellitesItem(SatellitesComponent *satComp, RootNode *rootNode=nullptr)
Constructor.
virtual void update() override
Update positions and visibility of satellites.
RootNode * rootNode()
Definition: skyitem.h:57
void recreateList()
recreates the node tree (deletes old nodes and appends new ones according to SatelliteGroups from Sat...
Information about an object in the sky.
Definition: skyobject.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.