1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/tile.h

26 lines
372 B
C
Raw Normal View History

#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