dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
tile.cpp
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 #include "tile.h"
28 
29 
30 namespace internals {
31 Tile::Tile(int zoom, Point pos)
32 {
33  this->zoom=zoom;
34  this->pos=pos;
35 }
37 {
38 #ifdef DEBUG_TILE
39  qDebug()<<"Tile:Clear Overlays";
40 #endif //DEBUG_TILE
41  mutex.lock();
42  Overlays.clear();
43  mutex.unlock();
44 }
45 Tile::Tile():zoom(0),pos(0,0)
46 {
47 
48 }
49 Tile& Tile::operator =(const Tile &cSource)
50 {
51  this->zoom=cSource.zoom;
52  this->pos=cSource.pos;
53  return *this;
54 }
55 
56 }
QMutex mutex
Definition: tile.h:59
QList< QByteArray > Overlays
Definition: tile.h:56
void Clear()
Definition: tile.cpp:36
Tile & operator=(const Tile &cSource)
Definition: tile.cpp:49