Marble

GeoSceneAbstractTileProjection.cpp
1 /*
2  SPDX-FileCopyrightText: 2016 Friedrich W. H. Kossebau <[email protected]>
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 
12 namespace Marble
13 {
14 
15 class GeoSceneAbstractTileProjectionPrivate
16 {
17 public:
18  GeoSceneAbstractTileProjectionPrivate();
19 
20 public:
21  int levelZeroColumns;
22  int levelZeroRows;
23 };
24 
25 GeoSceneAbstractTileProjectionPrivate::GeoSceneAbstractTileProjectionPrivate()
26  : levelZeroColumns(1)
27  , levelZeroRows(1)
28 {
29 }
30 
32  : d_ptr(new GeoSceneAbstractTileProjectionPrivate())
33 {
34 }
35 
36 GeoSceneAbstractTileProjection::~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 }
virtual GeoDataLatLonBox geoCoordinates(int zoomLevel, int x, int y) const =0
Get the boundary geo coordinates corresponding to a tile.
void setLevelZeroColumns(int levelZeroColumns)
Sets the number of tiles on level 0 in x dimension.
A class that defines a 2D bounding box for geographic data.
Binds a QML item to a specific geodetic location in screen coordinates.
void setLevelZeroRows(int levelZeroRows)
Sets the number of tiles on level 0 in y dimension.
GeoSceneAbstractTileProjection()
Construct a new GeoSceneAbstractTileProjection.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.