Kstars

constellationartnode.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 "skynode.h"
9
11
13class 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 SkyNode derived class that represents ConstellationsArt object.
virtual void hide() override
hides all child nodes (sets opacity of m_opacity to 0)
virtual void update() override
Updates coordinate of the object on SkyMapLite.
ConstellationArtNode(ConstellationsArt *obj)
Constructor.
void changePos(QPointF pos, double positionangle)
changePos change the position of this node
Information about a ConstellationsArt object.
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
Provides virtual functions for update of coordinates and nodes hiding.
Definition skynode.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.