Kstars

telescopesymbolsitem.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 namespace INDI
11 {
12 class BaseDevice;
13 }
14 
15 class ClientManagerLite;
16 class CrosshairNode;
17 class RootNode;
18 class SkyObject;
19 
20 /**
21  * @class TelescopeSymbolsItem
22  * This class handles representation of telescope symbols in SkyMapLite
23  *
24  * @author Artem Fedoskin
25  * @version 1.0
26  */
28 {
29  public:
30  /**
31  * @short Constructor
32  * @param rootNode parent RootNode that instantiates PlanetsItem
33  */
35 
36  /**
37  * @short Updates position and visibility of CrosshairNodes that represent telescope symbols
38  * If client is no more connected to host or device CrosshairNode is deleted.
39  */
40  virtual void update() override;
41 
42  /** Add telescope symbol for device bd */
43  void addTelescope(INDI::BaseDevice *bd);
44 
45  /** Remove telescope symbol of device bd */
46  void removeTelescope(INDI::BaseDevice *bd);
47 
48  private:
50  ClientManagerLite *m_clientManager { nullptr };
51  QColor m_color;
52  KStarsData *m_KStarsData { nullptr };
53 };
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
TelescopeSymbolsItem(RootNode *rootNode)
Constructor.
RootNode * rootNode()
Definition: skyitem.h:57
virtual void update() override
Updates position and visibility of CrosshairNodes that represent telescope symbols If client is no mo...
Information about an object in the sky.
Definition: skyobject.h:41
void addTelescope(INDI::BaseDevice *bd)
Add telescope symbol for device bd.
void removeTelescope(INDI::BaseDevice *bd)
Remove telescope symbol of device bd.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:14:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.