map2d_widget
src
internals
tile.h
Go to the documentation of this file.
1
12
/*
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
* for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with this program; if not, write to the Free Software Foundation, Inc.,
25
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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);}
56
QList<QByteArray>
Overlays
;
57
protected
:
58
59
QMutex
mutex
;
60
private
:
61
int
zoom;
62
core::Point
pos;
63
64
65
};
66
}
67
#endif // TILE_H
internals::Tile
Definition:
tile.h:39
internals::Tile::GetZoom
int GetZoom()
Definition:
tile.h:45
internals::Tile::Tile
Tile(const Tile &cSource)
Definition:
tile.h:50
core
Definition:
accessmode.h:35
internals::Tile::SetPos
void SetPos(const core::Point &value)
Definition:
tile.h:48
debugheader.h
internals::Tile::SetZoom
void SetZoom(const int &value)
Definition:
tile.h:47
internals::Tile::Overlays
QList< QByteArray > Overlays
Definition:
tile.h:56
core::Point
Definition:
point.h:35
internals
Definition:
copyrightstrings.h:33
internals::Tile::mutex
QMutex mutex
Definition:
tile.h:59
internals::Tile::GetPos
core::Point GetPos()
Definition:
tile.h:46
internals::Tile::HasValue
bool HasValue()
Definition:
tile.h:55
Generated by
1.8.13