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 "MarbleGlobal.h"
12#include "GeoDataLink.h"
13
14namespace Marble {
15
16class GeoDataCoordinates;
17class GeoDataLink;
18class GeoDataLocation;
19class GeoDataOrientation;
20class GeoDataResourceMap;
21class GeoDataScale;
22class GeoDataModelPrivate;
23
24/**
25 */
26class GEODATA_EXPORT GeoDataModel: public GeoDataGeometry
27{
28public:
29 GeoDataModel();
30
31 GeoDataModel( const GeoDataModel &other );
32
33 GeoDataModel& operator=( const GeoDataModel &other );
34
35 const char *nodeType() const override;
36
37 EnumGeometryId geometryId() const override;
38
39 GeoDataGeometry *copy() const override;
40
41 bool operator==( const GeoDataModel &other ) const;
42 bool operator!=( const GeoDataModel &other ) const;
43
44 ~GeoDataModel() override;
45
46 const GeoDataLink& link() const;
47 GeoDataLink& link();
48 void setLink( const GeoDataLink &link );
49
50 const GeoDataCoordinates& coordinates() const;
51 GeoDataCoordinates& coordinates();
52 void setCoordinates(const GeoDataCoordinates &coordinates);
53
54 const GeoDataScale& scale() const;
55 GeoDataScale& scale();
56 void setScale(const GeoDataScale &scale);
57
58 const GeoDataOrientation& orientation() const;
59 GeoDataOrientation& orientation();
60 void setOrientation( const GeoDataOrientation &orientation);
61
62 const GeoDataLocation& location() const;
63 GeoDataLocation& location();
64 void setLocation( const GeoDataLocation &location);
65
66 const GeoDataResourceMap& resourceMap() const;
67 GeoDataResourceMap& resourceMap();
68 void setResourceMap( const GeoDataResourceMap &map);
69
70 QString sourceHref() const;
71 QString targetHref() const;
72 void setSourceHref(const QString &sourceHref);
73 void setTargetHref(const QString &targetHref);
74
75private:
76 Q_DECLARE_PRIVATE(GeoDataModel)
77};
78
79}
80
81
82#endif // GEODATAMODEL_H
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
QVariant location(const QVariant &res)
const QList< QKeySequence > & copy()
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 11:58:54 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.