Kstars

constellationartnode.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 "skynode.h"
9 
11 
12 class ConstellationsArt;
13 class RootNode;
14 
15 /**
16  * @class ConstellationArtNode
17  *
18  * @short A SkyNode derived class that represents ConstellationsArt object.
19  * @author Artem Fedoskin
20  * @version 1.0
21  */
23 {
24  public:
25  /**
26  * @short Constructor
27  * @param obj - a pointer to ConstellationsArt object that is represented by this node
28  */
30 
31  /**
32  * @short changePos change the position of this node
33  * @param pos - new position
34  * @param positionangle - an angle of ConstellationsArt image rotation
35  */
36  void changePos(QPointF pos, double positionangle);
37 
38  virtual void update() override;
39  virtual void hide() override;
40 
41  private:
42  ConstellationsArt *m_art { nullptr };
43  QSGSimpleTextureNode *m_texture { nullptr };
44 };
A container for nodes that holds collection of textures for stars and provides clipping.
Definition: rootnode.h:59
virtual void hide() override
hides all child nodes (sets opacity of m_opacity to 0)
A SkyNode derived class that represents ConstellationsArt object.
void changePos(QPointF pos, double positionangle)
changePos change the position of this node
virtual void update() override
Updates coordinate of the object on SkyMapLite.
Provides virtual functions for update of coordinates and nodes hiding.
Definition: skynode.h:27
ConstellationArtNode(ConstellationsArt *obj)
Constructor.
Information about a ConstellationsArt object. This class represents a constellation image.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.