Marble

GeoSceneAbstractTileProjection.cpp
1/*
2 SPDX-FileCopyrightText: 2016 Friedrich W. H. Kossebau <kossebau@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "GeoSceneAbstractTileProjection.h"
8
9#include "GeoDataLatLonBox.h"
10#include <TileId.h>
11
12namespace Marble
13{
14
15class GeoSceneAbstractTileProjectionPrivate
16{
17public:
18 GeoSceneAbstractTileProjectionPrivate();
19
20public:
21 int levelZeroColumns;
22 int levelZeroRows;
23};
24
25GeoSceneAbstractTileProjectionPrivate::GeoSceneAbstractTileProjectionPrivate()
26 : levelZeroColumns(1)
27 , levelZeroRows(1)
28{
29}
30
31GeoSceneAbstractTileProjection::GeoSceneAbstractTileProjection()
32 : d_ptr(new GeoSceneAbstractTileProjectionPrivate())
33{
34}
35
36GeoSceneAbstractTileProjection::~GeoSceneAbstractTileProjection() = default;
37
39{
40 return d_ptr->levelZeroColumns;
41}
42
44{
45 d_ptr->levelZeroColumns = levelZeroColumns;
46}
47
49{
50 return d_ptr->levelZeroRows;
51}
52
54{
55 d_ptr->levelZeroRows = levelZeroRows;
56}
57
59{
60 return geoCoordinates(tileId.zoomLevel(), tileId.x(), tileId.y());
61}
62
63}
A class that defines a 2D bounding box for geographic data.
void setLevelZeroRows(int levelZeroRows)
Sets the number of tiles on level 0 in y dimension.
void setLevelZeroColumns(int levelZeroColumns)
Sets the number of tiles on level 0 in x dimension.
virtual GeoDataLatLonBox geoCoordinates(int zoomLevel, int x, int y) const =0
Get the boundary geo coordinates corresponding to a tile.
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 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.