libosmscout 1.1.1
Loading...
Searching...
No Matches
TiledRenderingHelper.h
Go to the documentation of this file.
1#ifndef OSMSCOUT_CLIENT_QT_TILEDRENDERINGHELPER_H
2#define OSMSCOUT_CLIENT_QT_TILEDRENDERINGHELPER_H
3/*
4 OSMScout - a Qt backend for libosmscout and libosmscout-map
5 Copyright (C) 2010 Tim Teulings
6 Copyright (C) 2017 Lukas Karas
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23#include <osmscoutclient/DBThread.h>
24
26
28
29#include <QPainter>
30
31namespace osmscout {
32
33class OSMSCOUT_CLIENT_QT_API TiledRenderingHelper
34{
35private:
36 TiledRenderingHelper(){};
37
43 static bool lookupAndDrawTile(TileCache& tileCache, QPainter& painter,
44 double x, double y, double renderTileWidth, double renderTileHeight,
45 uint32_t zoomLevel, uint32_t xtile, uint32_t ytile,
46 uint32_t upLimit, uint32_t downLimit,
47 double overlap);
48
49 static void lookupAndDrawBottomTileRecursive(TileCache& tileCache, QPainter& painter,
50 double x, double y, double renderTileWidth, double renderTileHeight, double overlap,
51 uint32_t zoomLevel, uint32_t xtile, uint32_t ytile,
52 uint32_t downLimit);
53
54public:
55 static bool RenderTiles(QPainter& painter,
56 const MapViewStruct& request,
57 QList<TileCache*> &layerCaches,
58 const QColor &unknownColor,
59 double overlap=-1,
60 const QColor &gridColor=QColor::fromRgbF(0.8,0.8,0.8));
61};
62}
63
64#endif //OSMSCOUT_CLIENT_QT_TILEDRENDERINGHELPER_H
#define OSMSCOUT_CLIENT_QT_API
Definition ClientQtImportExport.h:45
Definition TileCache.h:92
static bool RenderTiles(QPainter &painter, const MapViewStruct &request, QList< TileCache * > &layerCaches, const QColor &unknownColor, double overlap=-1, const QColor &gridColor=QColor::fromRgbF(0.8, 0.8, 0.8))
Definition Area.h:39