37
WMSMapAdapter(WmsServer aServer);
38
virtual ~WMSMapAdapter();
40
//! returns the unique identifier (Uuid) of this MapAdapter
42
* @return the unique identifier (Uuid) of this MapAdapter
44
virtual QUuid getId () const;
46
//! returns the type of this MapAdapter
48
* @return the type of this MapAdapter
50
virtual IMapAdapter::Type getType () const;
52
//! returns the name of this MapAdapter
54
* @return the name of this MapAdapter
56
virtual QString getName () const;
58
//! returns the host of this MapAdapter
60
* @return the host of this MapAdapter
62
virtual QString getHost () const;
64
//! returns the size of the tiles
66
* @return the size of the tiles
68
virtual int getTileSize () const { return -1; }
70
//! returns the min zoom value
72
* @return the min zoom value
74
virtual int getMinZoom () const { return -1; }
76
//! returns the max zoom value
78
* @return the max zoom value
80
virtual int getMaxZoom () const { return -1; }
82
//! returns the current zoom
84
* @return the current zoom
86
virtual int getZoom () const { return -1; }
88
virtual int getAdaptedZoom() const { return -1; }
89
virtual int getAdaptedMinZoom() const { return -1; }
90
virtual int getAdaptedMaxZoom() const { return -1; }
92
virtual void zoom_in() {}
93
virtual void zoom_out() {}
95
virtual bool isValid(int, int, int) const { return true; }
96
virtual QString getQuery(int, int, int) const { return ""; }
97
virtual QString getQuery(const QRectF& wgs84Bbox, const QRectF& projBbox, const QRect& size) const ;
98
virtual QPixmap getPixmap(const QRectF& wgs84Bbox, const QRectF& projBbox, const QRect& size) const { return QPixmap(); };
100
//! translates a world coordinate to display coordinate
102
* The calculations also needs the current zoom. The current zoom is managed by the MapAdapter, so this is no problem.
103
* To divide model from view the current zoom should be moved to the layers.
104
* @param coordinate the world coordinate
105
* @return the display coordinate (in widget coordinates)
107
virtual QPoint coordinateToDisplay(const QPointF& ) const { return QPoint(); }
109
//! translates display coordinate to world coordinate
111
* The calculations also needs the current zoom. The current zoom is managed by the MapAdapter, so this is no problem.
112
* To divide model from view the current zoom should be moved to the layers.
113
* @param point the display coordinate
114
* @return the world coordinate
116
virtual QPointF displayToCoordinate(const QPoint& ) const { return QPointF(); }
118
virtual bool isTiled() const { return false; }
119
virtual QString projection() const;
121
virtual QMenu* getMenu() const { return NULL; }
123
virtual IImageManager* getImageManager();
124
virtual void setImageManager(IImageManager* anImageManager);
37
WMSMapAdapter(WmsServer aServer);
38
virtual ~WMSMapAdapter();
40
//! returns the unique identifier (Uuid) of this MapAdapter
42
* @return the unique identifier (Uuid) of this MapAdapter
44
virtual QUuid getId () const;
46
//! returns the type of this MapAdapter
48
* @return the type of this MapAdapter
50
virtual IMapAdapter::Type getType () const;
52
//! returns the name of this MapAdapter
54
* @return the name of this MapAdapter
56
virtual QString getName () const;
58
//! returns the host of this MapAdapter
60
* @return the host of this MapAdapter
62
virtual QString getHost () const;
64
//! returns the size of the tiles
66
* @return the size of the tiles
68
virtual int getTileSize () const { return -1; }
70
//! returns the min zoom value
72
* @return the min zoom value
74
virtual int getMinZoom () const { return -1; }
76
//! returns the max zoom value
78
* @return the max zoom value
80
virtual int getMaxZoom () const { return -1; }
82
//! returns the current zoom
84
* @return the current zoom
86
virtual int getZoom () const { return -1; }
88
virtual int getAdaptedZoom() const { return -1; }
89
virtual int getAdaptedMinZoom() const { return -1; }
90
virtual int getAdaptedMaxZoom() const { return -1; }
92
virtual void zoom_in() {}
93
virtual void zoom_out() {}
95
virtual bool isValid(int, int, int) const { return true; }
96
virtual QString getQuery(int, int, int) const { return ""; }
97
virtual QString getQuery(const QRectF& wgs84Bbox, const QRectF& projBbox, const QRect& size) const ;
98
virtual QPixmap getPixmap(const QRectF& /* wgs84Bbox */, const QRectF& /* projBbox */, const QRect& /* size */) const { return QPixmap(); }
100
virtual QString projection() const;
101
virtual QRectF getBoundingbox() const { return QRectF(); }
103
virtual bool isTiled() const { return false; }
104
virtual int getTilesWE(int) const { return -1; }
105
virtual int getTilesNS(int) const { return -1; }
107
virtual QMenu* getMenu() const { return NULL; }
109
virtual IImageManager* getImageManager();
110
virtual void setImageManager(IImageManager* anImageManager);
112
virtual void cleanup() {}
130
IImageManager* theImageManager;
118
IImageManager* theImageManager;