Kstars

skypointlite.h
1 /*
2  SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
3  SPDX-License-Identifier: GPL-2.0-or-later
4 */
5 #ifndef SKYPOINTLITE_H_
6 #define SKYPOINTLITE_H_
7 
8 #include "skypoint.h"
9 #include <QObject>
10 
11 class SkyObject;
12 
13 /**
14  * @class SkyPointLite
15  * Wrapper for SkyPoint to allow access of some of its properties from QML
16  *
17  * @author Artem Fedoskin
18  * @version 1.0
19  */
20 
21 class SkyPointLite : public QObject
22 {
23  Q_OBJECT
24  public:
25  /** Constructor **/
26  SkyPointLite();
27 
28  /** @short sets SkyPoint that is needed to be wrapped **/
29  void setPoint(SkyPoint *point);
30 
31  /** @return SkyPoint that is being wrapped **/
32  Q_INVOKABLE SkyPoint *getPoint() { return point; }
33 
34  private:
35  SkyPoint *point;
36 };
37 #endif
Q_OBJECTQ_OBJECT
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
Q_INVOKABLEQ_INVOKABLE
void setPoint(SkyPoint *point)
sets SkyPoint that is needed to be wrapped
SkyPointLite()
Constructor.
Definition: skypointlite.cpp:8
Q_INVOKABLE SkyPoint * getPoint()
Definition: skypointlite.h:32
Information about an object in the sky.
Definition: skyobject.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.