Kstars

asteroidsitem.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 RootNode;
11class SkyObject;
12
13/**
14 * @class AsteroidsItem
15 * This class handles asteroids in SkyMapLite
16 *
17 * @author Artem Fedoskin
18 * @version 1.0
19 */
20class AsteroidsItem : public SkyItem
21{
22 public:
23 /**
24 * @short Constructor
25 * @param asteroidsList const reference to list of asteroids
26 * @param rootNode parent RootNode that instantiates PlanetsItem
27 */
28 explicit AsteroidsItem(const QList<SkyObject *> &asteroidsList, RootNode *rootNode = nullptr);
29
30 /**
31 * @short recreates the node tree (deletes old nodes and appends new ones based on SkyObjects in
32 * m_asteroidsList)
33 */
34 void recreateList();
35
36 /** Determines the visibility of the object and its label and hides/updates them accordingly */
37 virtual void update() override;
38
39 private:
40 const QList<SkyObject *> &m_asteroidsList;
41};
This class handles asteroids in SkyMapLite.
AsteroidsItem(const QList< SkyObject * > &asteroidsList, RootNode *rootNode=nullptr)
Constructor.
virtual void update() override
Determines the visibility of the object and its label and hides/updates them accordingly.
void recreateList()
recreates the node tree (deletes old nodes and appends new ones based on SkyObjects in m_asteroidsLis...
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 Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.