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
RootNode * rootNode()
Definition skyitem.h:57
SkyItem(LabelsItem::label_t labelType, RootNode *rootNode=nullptr)
Constructor, appends SkyItem to rootNode as a child in a node tree.
Definition skyitem.cpp:10
This class encapsulates Supernovae.
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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.