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()
37{
38}
39
41{
42 return d_ptr->levelZeroColumns;
43}
44
46{
47 d_ptr->levelZeroColumns = levelZeroColumns;
48}
49
51{
52 return d_ptr->levelZeroRows;
53}
54
56{
57 d_ptr->levelZeroRows = levelZeroRows;
58}
59
61{
62 return geoCoordinates(tileId.zoomLevel(), tileId.x(), tileId.y());
63}
64
65}
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 Fri May 17 2024 11:49:23 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.