Marble

GeoDataModel.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mayank Madan <maddiemadan@gmail.com>
4// SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <sanjiban22393@gmail.com>
5//
6
7#ifndef GEODATAMODEL_H
8#define GEODATAMODEL_H
9
10#include "GeoDataGeometry.h"
11#include "GeoDataLink.h"
12#include "MarbleGlobal.h"
13
14namespace Marble
15{
16
17class GeoDataCoordinates;
18class GeoDataLink;
19class GeoDataLocation;
20class GeoDataOrientation;
21class GeoDataResourceMap;
22class GeoDataScale;
23class GeoDataModelPrivate;
24
25/**
26 */
27class GEODATA_EXPORT GeoDataModel : public GeoDataGeometry
28{
29public:
30 GeoDataModel();
31
32 GeoDataModel(const GeoDataModel &other);
33
34 GeoDataModel &operator=(const GeoDataModel &other);
35
36 const char *nodeType() const override;
37
38 EnumGeometryId geometryId() const override;
39
40 GeoDataGeometry *copy() const override;
41
42 bool operator==(const GeoDataModel &other) const;
43 bool operator!=(const GeoDataModel &other) const;
44
45 ~GeoDataModel() override;
46
47 const GeoDataLink &link() const;
48 GeoDataLink &link();
49 void setLink(const GeoDataLink &link);
50
51 const GeoDataCoordinates &coordinates() const;
52 GeoDataCoordinates &coordinates();
53 void setCoordinates(const GeoDataCoordinates &coordinates);
54
55 const GeoDataScale &scale() const;
56 GeoDataScale &scale();
57 void setScale(const GeoDataScale &scale);
58
59 const GeoDataOrientation &orientation() const;
60 GeoDataOrientation &orientation();
61 void setOrientation(const GeoDataOrientation &orientation);
62
63 const GeoDataLocation &location() const;
64 GeoDataLocation &location();
65 void setLocation(const GeoDataLocation &location);
66
67 const GeoDataResourceMap &resourceMap() const;
68 GeoDataResourceMap &resourceMap();
69 void setResourceMap(const GeoDataResourceMap &map);
70
71 QString sourceHref() const;
72 QString targetHref() const;
73 void setSourceHref(const QString &sourceHref);
74 void setTargetHref(const QString &targetHref);
75
76private:
77 Q_DECLARE_PRIVATE(GeoDataModel)
78};
79
80}
81
82#endif // GEODATAMODEL_H
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
KIOCORE_EXPORT CopyJob * copy(const QList< QUrl > &src, const QUrl &dest, JobFlags flags=DefaultFlags)
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
QVariant location(const QVariant &res)
bool operator==(const StyleDelim &l, const StyleDelim &r)
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 Fri Nov 8 2024 12:02:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.