Kstars

deepstaritem.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 
10 #include <memory>
11 
12 class DeepStarComponent;
13 class SkyMesh;
14 class StarBlockFactory;
15 class StarBlockList;
16 
17 /**
18  * @class DeepStarItem
19  *
20  * @short This class handles representation of unnamed stars in SkyMapLite
21  *
22  * @author Artem Fedoskin
23  * @version 1.0
24  */
25 class DeepStarItem : public SkyItem
26 {
27  public:
28  /**
29  * @short Constructor. Instantiates nodes for static stars
30  * @param deepStarComp - pointer to DeepStarComponent that handles data
31  * @param rootNode - parent RootNode that instantiated this object
32  */
34 
35  /**
36  * @short updates all trixels that contain stars
37  */
38  virtual void update();
39 
40  private:
41  SkyMesh *m_skyMesh { nullptr };
42  StarBlockFactory *m_StarBlockFactory { nullptr };
43 
44  DeepStarComponent *m_deepStarComp { nullptr };
45  QVector<std::shared_ptr<StarBlockList>> *m_starBlockList { nullptr };
46  bool m_staticStars { false };
47 };
A base class that is used for displaying SkyComponents on SkyMapLite.
Definition: skyitem.h:29
A container for nodes that holds collection of textures for stars and provides clipping.
Definition: rootnode.h:59
virtual void update()
updates all trixels that contain stars
This class handles representation of unnamed stars in SkyMapLite.
Definition: deepstaritem.h:25
RootNode * rootNode()
Definition: skyitem.h:57
A factory that creates StarBlocks and recycles them in an LRU Cache.
DeepStarItem(DeepStarComponent *deepStarComp, RootNode *rootNode)
Constructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.