Kstars

skypointlite.h
1/*
2 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
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
11class 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
21class SkyPointLite : public QObject
22{
24 public:
25 /** Constructor **/
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
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
Wrapper for SkyPoint to allow access of some of its properties from QML.
SkyPointLite()
Constructor.
void setPoint(SkyPoint *point)
sets SkyPoint that is needed to be wrapped
Q_INVOKABLE SkyPoint * getPoint()
The sky coordinates of a point in the sky.
Definition skypoint.h:45
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:49:22 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.