QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
19 #include "qgsconfig.h"
26 #include <QGestureEvent>
40 class QAbstractButton;
69 sipType = sipType_QgsMapToolZoom;
71 sipType = sipType_QgsMapToolPan;
73 sipType = sipType_QgsMapToolEmitPoint;
75 sipType = sipType_QgsMapToolIdentify;
95 AllowZoomRect = 1 << 3,
96 ShowContextMenu = 1 << 4,
98 Q_DECLARE_FLAGS( Flags, Flag )
104 virtual Flags flags()
const {
return Flags(); }
121 virtual void wheelEvent( QWheelEvent *e );
124 virtual void keyPressEvent( QKeyEvent *e );
127 virtual void keyReleaseEvent( QKeyEvent *e );
130 virtual bool gestureEvent( QGestureEvent *e );
138 void setAction( QAction *action );
147 bool isActive()
const;
153 void setButton( QAbstractButton *button );
156 QAbstractButton *button();
159 virtual void setCursor(
const QCursor &cursor );
162 virtual void activate();
165 virtual void deactivate();
168 virtual void clean();
185 static double searchRadiusMM();
215 virtual void populateContextMenu( QMenu *menu );
232 void actionDestroyed();
261 QPoint toCanvasCoordinates(
const QgsPointXY &point )
const;
273 QAction *mAction =
nullptr;
279 QAbstractButton *mButton =
nullptr;
Point geometry type, with support for z-dimension and m-values.
Map canvas is a class for displaying all GIS data types on a canvas.
Contains information about the context of a rendering operation.
A rectangle specified with double values.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
A class to represent a 2D point.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Base class for all map layer types.