Subversion Repositories Projects

Rev

Rev 674 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 674 Rev 801
Line 25... Line 25...
25
 
25
 
26
#ifndef GOOGLESATMAPADAPTER_H
26
#ifndef GOOGLESATMAPADAPTER_H
Line 27... Line 27...
27
#define GOOGLESATMAPADAPTER_H
27
#define GOOGLESATMAPADAPTER_H
-
 
28
 
28
 
29
#include "tilemapadapter.h"
29
#include "tilemapadapter.h"
30
 
30
namespace qmapcontrol
31
namespace qmapcontrol
31
{
32
{
32
    //! MapAdapter for Google
33
    //! MapAdapter for Google
33
    /*!
34
    /*!
34
     * This is a conveniece class, which extends and configures a TileMapAdapter
35
     * This is a conveniece class, which extends and configures a TileMapAdapter
35
     *  @author Kai Winter <kaiwinter@gmx.de>
36
     *  @author Kai Winter <kaiwinter@gmx.de>
36
     */
37
     */
37
    class GoogleSatMapAdapter : public TileMapAdapter
38
    class GoogleSatMapAdapter : public TileMapAdapter
-
 
39
    {
38
    {
40
        Q_OBJECT
39
        Q_OBJECT
41
 
40
    public:
42
    public:
41
        //! constructor
43
        //! constructor
42
        /*!
44
        /*!
43
         * This construct a Google Adapter
45
         * This construct a Google Adapter
44
         */
46
         */
45
        GoogleSatMapAdapter();
-
 
46
        virtual ~GoogleSatMapAdapter();
-
 
47
 
-
 
48
        virtual QPoint          coordinateToDisplay(const QPointF&) const;
-
 
49
        virtual QPointF displayToCoordinate(const QPoint&) const;
-
 
50
 
-
 
51
        //! returns the host of this MapAdapter
-
 
52
        /*!
-
 
53
         * @return  the host of this MapAdapter
-
 
54
         */
-
 
55
        QString getHost         () const;
-
 
56
 
-
 
57
 
-
 
58
    protected:
-
 
59
        virtual void zoom_in();
-
 
60
        virtual void zoom_out();
-
 
61
        virtual QString query(int x, int y, int z) const;
-
 
62
        virtual bool isValid(int x, int y, int z) const;
-
 
63
 
-
 
64
    private:
-
 
65
        virtual QString getQ(qreal longitude, qreal latitude, int zoom) const;
-
 
66
        qreal getMercatorLatitude(qreal YCoord) const;
-
 
67
        qreal getMercatorYCoord(qreal lati) const;
-
 
68
 
-
 
69
        qreal coord_per_x_tile;
-
 
70
        qreal coord_per_y_tile;
47
        GoogleSatMapAdapter();
71
        int srvNum;
48
        virtual ~GoogleSatMapAdapter();
72
    };
49
    };