15 OZF(const QString
&name
) : _tileSize(0), _decrypt(false), _key(0),
19 void close() {_file
.close();}
21 QString
fileName() const {return _file
.fileName();}
22 bool isOpen() const {return _file
.isOpen();}
24 int zooms() const {return _zooms
.size();}
25 QSize
size(int zoom
) const;
26 QPointF
scale(int zoom
) const;
27 QSize
tileSize() const {return QSize(_tileSize
, _tileSize
);}
28 QPixmap
tile(int zoom
, int x
, int y
);
30 static bool isOZF(const QString
&path
);
36 QVector
<QRgb
> palette
;
37 QVector
<quint32
> tiles
;
40 template<class T
> bool readValue(T
&val
);
41 bool read(void *data
, size_t size
, size_t decryptSize
= 0);