map2d_widget
rawtile.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 RAWTILE_H
28 #define RAWTILE_H
29 
30 #include "maptype.h"
31 #include "point.h"
32 #include <QString>
33 #include <QHash>
34 
35 namespace core {
36  class RawTile
37  {
38  friend uint qHash(RawTile const& tile);
39  friend bool operator==(RawTile const& lhs,RawTile const& rhs);
40 
41  public:
42  RawTile(const MapType::Types &Type,const core::Point &Pos,const int &Zoom);
43  QString ToString(void);
45  core::Point Pos();
46  int Zoom();
47  void setType(const MapType::Types &value);
48  void setPos(const core::Point &value);
49  void setZoom(const int &value);
50  private:
51  MapType::Types type;
52  core::Point pos;
53  int zoom;
54  };
55 }
56 #endif // RAWTILE_H
Definition: rawtile.h:36
MapType::Types Type()
Definition: rawtile.cpp:45
void setZoom(const int &value)
Definition: rawtile.cpp:61
RawTile(const MapType::Types &Type, const core::Point &Pos, const int &Zoom)
Definition: rawtile.cpp:31
Types
Definition: maptype.h:39
Definition: accessmode.h:35
int Zoom()
Definition: rawtile.cpp:49
friend uint qHash(RawTile const &tile)
Definition: rawtile.cpp:65
Definition: point.h:35
void setType(const MapType::Types &value)
Definition: rawtile.cpp:53
QString ToString(void)
Definition: rawtile.cpp:37
core::Point Pos()
Definition: rawtile.cpp:41
friend bool operator==(RawTile const &lhs, RawTile const &rhs)
Definition: rawtile.cpp:72
void setPos(const core::Point &value)
Definition: rawtile.cpp:57