Marble

Tile.h
1/*
2SPDX-FileCopyrightText: 2010 Jens-Michael Hoffmann <jmho@c-xx.com>
3
4SPDX-FileCopyrightText: 2012 Ander Pijoan <ander.pijoan@deusto.es>
5
6SPDX-License-Identifier: LGPL-2.1-or-later
7*/
8
9#ifndef MARBLE_TILE_H
10#define MARBLE_TILE_H
11
12#include "TileId.h"
13
14namespace Marble
15{
16
17/*!
18 \class Tile
19 \brief A class that resembles a tile (then it is extended to TextureTile or Vectortile).
20
21 A tile provides a bitmap image or vector data for a certain (geographic) area and
22 for a given zoom level. Each Tile can be identified via a unique
23 TileId.
24
25 A stack of Tiles that cover the same area and the same
26 zoom level can be stored (and painted) layer by layer in a StackedTile object.
27 For this purpose each Texture Tile specifies a blending type.
28
29 Usually the tiles are organized in so called quad tiles: This means that
30 with increasing zoom level four other tiles cover the same area as a
31 single "parent" tile in the previous zoom level. These four tiles have
32 the same pixel size as the "parent" tile.
33
34 The process of "filling the tile with data is done in stages: The
35 State describes the current progress of loading the data (Empty, Scaled,
36 Expired, StateUptodate).
37
38 The life time cycle of a Tile can also be influenced by its
39 expiration time which will trigger a reload of the tile data.
40*/
41
42class Tile
43{
44public:
45 explicit Tile(TileId const &tileId);
46 virtual ~Tile();
47
48 /*!
49 \brief Returns a unique ID for the tile.
50 \return A TileId object that encodes zoom level, position and map theme.
51 */
52 TileId const &id() const;
53
54private:
55 Q_DISABLE_COPY(Tile)
56
57 TileId const m_id;
58};
59
60// inline definitions
61
62inline TileId const &Tile::id() const
63{
64 return m_id;
65}
66
67}
68
69#endif
A class that resembles a tile (then it is extended to TextureTile or Vectortile).
Definition Tile.h:43
TileId const & id() const
Returns a unique ID for the tile.
Definition Tile.h:62
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 Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.