34 lines
725 B
C++
34 lines
725 B
C++
// CustomCursorTool.h
|
|
#ifndef CUSTOMCURSORTOOL_H
|
|
#define CUSTOMCURSORTOOL_H
|
|
|
|
|
|
#include <qgsmaptool.h>
|
|
#include <qgsmapcanvas.h>
|
|
|
|
#include <qgsvector.h>
|
|
#include <qgsvectorlayer.h>
|
|
#include <qgsrasterlayer.h>
|
|
#include <qgsmeshlayer.h>
|
|
#include <qgspoint.h>
|
|
#include <QMouseEvent>
|
|
#include "qgsmaptoolidentify.h"
|
|
|
|
class QgsMapMouseEvent;
|
|
|
|
class CustomCursorTool : public QgsMapToolIdentify
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CustomCursorTool(QgsMapCanvas* canvas);
|
|
~CustomCursorTool() override = default;
|
|
|
|
signals:
|
|
void identifyResultChange(QList<QgsMapToolIdentify::IdentifyResult> result);
|
|
private :
|
|
void canvasMoveEvent(QgsMapMouseEvent* e) override; // ´¦ÀíÊó±êÒÆ¶¯Ê¼þ
|
|
|
|
};
|
|
|
|
#endif // CUSTOMCURSORTOOL_H
|