Kstars

supernovaeitem.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 
11 
12 /**
13  * @class SupernovaeItem
14  * This class handles supernovae in SkyMapLite
15  *
16  * @author Artem Fedoskin
17  * @version 1.0
18  */
19 class SupernovaeItem : public SkyItem
20 {
21  public:
22  /**
23  * @short Constructor
24  * @param snovaComp - pointer to SupernovaeComponent that handles data
25  * @param rootNode parent RootNode that instantiates this object
26  */
27  explicit SupernovaeItem(SupernovaeComponent *snovaComp, RootNode *rootNode = nullptr);
28 
29  /**
30  * @short Recreate the node tree (delete old nodes and append new ones according to
31  * SupernovaeItem::objectList())
32  */
33  void recreateList();
34 
35  /** Update positions and visibility of supernovae */
36  virtual void update() override;
37 
38  private:
39  SupernovaeComponent *m_snovaComp { nullptr };
40 };
A base class that is used for displaying SkyComponents on SkyMapLite.
Definition: skyitem.h:29
virtual void update() override
Update positions and visibility of supernovae.
A container for nodes that holds collection of textures for stars and provides clipping.
Definition: rootnode.h:59
void recreateList()
Recreate the node tree (delete old nodes and append new ones according to SupernovaeItem::objectList(...
SupernovaeItem(SupernovaeComponent *snovaComp, RootNode *rootNode=nullptr)
Constructor.
This class encapsulates Supernovae.
RootNode * rootNode()
Definition: skyitem.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.