85c8ff0a8ba2a4a6674d3ea0f604a65db64e5f4e
[situare] / src / map / mapengine.h
1  /*
2     Situare - A location system for Facebook
3     Copyright (C) 2010  Ixonos Plc. Authors:
4
5         Sami Rämö - sami.ramo@ixonos.com
6
7     Situare is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License
9     as published by the Free Software Foundation; either version 2
10     of the License, or (at your option) any later version.
11
12     Situare is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with Situare; if not, write to the Free Software
19     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
20     USA.
21  */
22
23
24 #ifndef MAPENGINE_H
25 #define MAPENGINE_H
26
27 #include "mapview.h"
28 #include "mapscene.h"
29
30 class MapEngine
31 {
32 public:
33     MapEngine();
34     MapEngine(MapView *mapView);
35     QPoint convertTileNumberToSceneCoordinate(int zoomLevel, QPoint tileNumber);
36
37 public:
38     static const int TILE_SIZE_X = 256;
39     static const int TILE_SIZE_Y = 256;
40     static const int MAX_ZOOM_LEVEL = 18;
41
42 private:
43     MapView *m_mapView;
44     MapScene *m_mapScene;
45 };
46
47 #endif // MAPENGINE_H