Kstars

cometsitem.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 SkyObject;
11 
12 /**
13  * @class CometsItem
14  * This class handles comets in SkyMapLite
15  *
16  * @author Artem Fedoskin
17  * @version 1.0
18  */
19 class CometsItem : public SkyItem
20 {
21  public:
22  /**
23  * @short Constructor
24  * @param cometsList const reference to list of comets
25  * @param rootNode parent RootNode that instantiates this object
26  */
27  explicit CometsItem(const QList<SkyObject *> &cometsList, RootNode *rootNode = nullptr);
28 
29  /**
30  * @short recreates the node tree (deletes old nodes and appends new ones according to
31  * m_cometsList)
32  */
33  void recreateList();
34 
35  /**
36  * @short Determines the visibility of the object and its label and hides/updates them accordingly
37  */
38  virtual void update() override;
39 
40  private:
41  const QList<SkyObject *> &m_cometsList;
42 };
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
virtual void update() override
Determines the visibility of the object and its label and hides/updates them accordingly.
Definition: cometsitem.cpp:24
CometsItem(const QList< SkyObject * > &cometsList, RootNode *rootNode=nullptr)
Constructor.
Definition: cometsitem.cpp:18
void recreateList()
recreates the node tree (deletes old nodes and appends new ones according to m_cometsList)
Definition: cometsitem.cpp:72
RootNode * rootNode()
Definition: skyitem.h:57
Information about an object in the sky.
Definition: skyobject.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:03:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.