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:
25
src/tile.h
Normal file
25
src/tile.h
Normal 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
|
Reference in New Issue
Block a user