Kstars

telescopesymbolsitem.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
10namespace INDI
11{
12class BaseDevice;
13}
14
16class CrosshairNode;
17class RootNode;
18class 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};
KStarsData is the backbone of KStars.
Definition kstarsdata.h:74
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 class handles representation of telescope symbols in SkyMapLite.
void addTelescope(INDI::BaseDevice *bd)
Add telescope symbol for device bd.
TelescopeSymbolsItem(RootNode *rootNode)
Constructor.
void removeTelescope(INDI::BaseDevice *bd)
Remove telescope symbol of device bd.
virtual void update() override
Updates position and visibility of CrosshairNodes that represent telescope symbols If client is no mo...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.