dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
tile.h
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 #ifndef TILE_H
28 #define TILE_H
29 
30 #include "QList"
31 #include <QImage>
32 #include "../core/point.h"
33 #include <QMutex>
34 #include <QDebug>
35 #include "debugheader.h"
36 using namespace core;
37 namespace internals
38 {
39 class Tile
40 {
41 public:
42  Tile(int zoom,core::Point pos);
43  Tile();
44  void Clear();
45  int GetZoom(){return zoom;}
46  core::Point GetPos(){return pos;}
47  void SetZoom(const int &value){zoom=value;}
48  void SetPos(const core::Point &value){pos=value;}
49  Tile& operator= (const Tile &cSource);
50  Tile(const Tile &cSource)
51  {
52  this->zoom=cSource.zoom;
53  this->pos=cSource.pos;
54  }
55  bool HasValue(){return !(zoom==0);}
57 protected:
58 
59  QMutex mutex;
60 private:
61  int zoom;
62  core::Point pos;
63 
64 
65 };
66 }
67 #endif // TILE_H
QMutex mutex
Definition: tile.h:59
QList< QByteArray > Overlays
Definition: tile.h:56
void SetPos(const core::Point &value)
Definition: tile.h:48
void SetZoom(const int &value)
Definition: tile.h:47
bool HasValue()
Definition: tile.h:55
int GetZoom()
Definition: tile.h:45
core::Point GetPos()
Definition: tile.h:46
Tile(const Tile &cSource)
Definition: tile.h:50