6#ifndef MARBLE_DECLARATIVE_GEOITEM_H
7#define MARBLE_DECLARATIVE_GEOITEM_H
9#include "GeoDataCoordinates.h"
26 Q_PROPERTY(Marble::MarbleQuickItem *map READ map WRITE setMap NOTIFY mapChanged)
28 Q_PROPERTY(qreal longitude READ longitude WRITE setLongitude NOTIFY longitudeChanged)
29 Q_PROPERTY(qreal latitude READ latitude WRITE setLatitude NOTIFY latitudeChanged)
30 Q_PROPERTY(qreal altitude READ altitude WRITE setAltitude NOTIFY altitudeChanged)
32 Q_PROPERTY(
bool observable READ observable NOTIFY observableChanged)
34 Q_PROPERTY(
bool visible READ visObservable WRITE setVisObservable NOTIFY visObservableChanged)
36 Q_PROPERTY(qreal x READ readonlyX NOTIFY readonlyXChanged)
37 Q_PROPERTY(qreal y READ readonlyY NOTIFY readonlyYChanged)
43 Q_INVOKABLE bool moveToScreenCoordinates(qreal x, qreal y);
46 qreal longitude()
const;
49 void setLongitude(qreal lon);
52 qreal latitude()
const;
55 void setLatitude(qreal lat);
58 qreal altitude()
const;
61 void setAltitude(qreal alt);
70 MarbleQuickItem *map()
const;
73 void setMap(MarbleQuickItem *map);
76 bool observable()
const;
79 bool visObservable()
const;
81 void setVisObservable(
bool visible);
84 qreal readonlyX()
const
90 qreal readonlyY()
const
96 void longitudeChanged();
97 void latitudeChanged();
98 void altitudeChanged();
100 void mapChanged(MarbleQuickItem *map);
102 void observableChanged(
bool observable);
104 void visObservableChanged(
bool visible);
106 void readonlyXChanged(qreal x);
107 void readonlyYChanged(qreal y);
111 MarbleQuickItem *m_map =
nullptr;
117 void updateScreenPosition();
118 void setMapToParentOnInit();
A 3d point representation.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.