maptool:

报错,没实现;
This commit is contained in:
tangchao0503
2026-03-11 18:09:38 +08:00
parent ece7a34bfb
commit 0b2744656b
12 changed files with 517 additions and 9 deletions

View File

@ -6,6 +6,8 @@
#include <QVector>
#include "RasterLayer.h"
class MapTool;
class Mapcavas : public QGraphicsView
{
Q_OBJECT
@ -49,6 +51,11 @@ public:
RasterLayer* rasterLayer() const;
// MapTool management
void setMapTool(MapTool* tool);
void unsetMapTool(MapTool* tool);
MapTool* mapTool() const;
protected:
QGraphicsScene *m_qtGraphicsScene;
private:
@ -56,6 +63,7 @@ private:
QLabel *m_framNumberLabel;//<2F><>ʾʵʱ<CAB5>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD>֡<EFBFBD><D6A1>
RasterLayer* m_rasterLayer = nullptr; // associated raster layer
MapTool* m_mapTool = nullptr; // current active map tool
qreal m_translateSpeed; // ƽ<><C6BD><EFBFBD>ٶ<EFBFBD>
qreal m_zoomDelta; // <20><><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD>