Kstars

cometsitem.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
10class SkyObject;
11
12/**
13 * @class CometsItem
14 * This class handles comets in SkyMapLite
15 *
16 * @author Artem Fedoskin
17 * @version 1.0
18 */
19class 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};
This class handles comets in SkyMapLite.
Definition cometsitem.h:20
void recreateList()
recreates the node tree (deletes old nodes and appends new ones according to m_cometsList)
virtual void update() override
Determines the visibility of the object and its label and hides/updates them accordingly.
CometsItem(const QList< SkyObject * > &cometsList, RootNode *rootNode=nullptr)
Constructor.
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
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.