1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-20 05:44:23 +02:00

Added coordinates checking to file parsers

Refactoring
This commit is contained in:
2016-10-24 00:21:40 +02:00
parent 375ef20592
commit 27194d3d36
28 changed files with 288 additions and 221 deletions

25
src/tile.h Normal file
View File

@ -0,0 +1,25 @@
#ifndef TILE_H
#define TILE_H
#include <QPixmap>
#include <QPoint>
class Tile
{
public:
Tile(const QPoint &xy, int zoom)
{_xy = xy; _zoom = zoom;}
int zoom() const {return _zoom;}
const QPoint& xy() const {return _xy;}
QPixmap& pixmap() {return _pixmap;}
static int size() {return 256;}
private:
int _zoom;
QPoint _xy;
QPixmap _pixmap;
};
#endif // TILE_H