Kstars

supernovaeitem.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
11
12/**
13 * @class SupernovaeItem
14 * This class handles supernovae in SkyMapLite
15 *
16 * @author Artem Fedoskin
17 * @version 1.0
18 */
19class 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 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 class encapsulates Supernovae.
This class handles supernovae in SkyMapLite.
virtual void update() override
Update positions and visibility of supernovae.
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 file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.