|
| QgsMapToolIdentify (QgsMapCanvas *canvas) |
| constructor More...
|
|
| ~QgsMapToolIdentify () override |
|
void | activate () override |
| called when set as currently active map tool More...
|
|
void | canvasMoveEvent (QgsMapMouseEvent *e) override |
| Mouse move event for overriding. Default implementation does nothing. More...
|
|
void | canvasPressEvent (QgsMapMouseEvent *e) override |
| Mouse press event for overriding. Default implementation does nothing. More...
|
|
void | canvasReleaseEvent (QgsMapMouseEvent *e) override |
| Mouse release event for overriding. Default implementation does nothing. More...
|
|
void | deactivate () override |
| called when map tool is being deactivated More...
|
|
Flags | flags () const override |
| Returns the flags for the map tool. More...
|
|
void | fromElevationProfileLayerIdentificationToIdentifyResults (QgsMapLayer *layer, const QVector< QVariantMap > &identified, QList< QgsMapToolIdentify::IdentifyResult > &results) |
| Converts elevation profile identification results from variant maps to QgsMapToolIdentify::IdentifyResult and apply some formatting. More...
|
|
QList< QgsMapToolIdentify::IdentifyResult > | identify (const QgsGeometry &geometry, IdentifyMode mode, const QList< QgsMapLayer * > &layerList, LayerType layerType, const QgsIdentifyContext &identifyContext=QgsIdentifyContext()) |
| Performs identification based on a geometry (in map coordinates) More...
|
|
QList< QgsMapToolIdentify::IdentifyResult > | identify (const QgsGeometry &geometry, IdentifyMode mode, LayerType layerType, const QgsIdentifyContext &identifyContext=QgsIdentifyContext()) |
| Performs identification based on a geometry (in map coordinates) More...
|
|
QList< QgsMapToolIdentify::IdentifyResult > | identify (int x, int y, const QList< QgsMapLayer * > &layerList=QList< QgsMapLayer * >(), IdentifyMode mode=DefaultQgsSetting, const QgsIdentifyContext &identifyContext=QgsIdentifyContext()) |
| Performs the identification. More...
|
|
QList< QgsMapToolIdentify::IdentifyResult > | identify (int x, int y, IdentifyMode mode, LayerType layerType=AllLayers, const QgsIdentifyContext &identifyContext=QgsIdentifyContext()) |
| Performs the identification. More...
|
|
QgsIdentifyMenu * | identifyMenu () |
| Returns a pointer to the identify menu which will be used in layer selection mode this menu can also be customized. More...
|
|
| ~QgsMapTool () override |
|
QAction * | action () |
| Returns associated action with map tool or nullptr if no action is associated. More...
|
|
virtual void | activate () |
| called when set as currently active map tool More...
|
|
QAbstractButton * | button () |
| Returns associated button with map tool or nullptr if no button is associated. More...
|
|
QgsMapCanvas * | canvas () const |
| returns pointer to the tool's map canvas More...
|
|
virtual void | canvasDoubleClickEvent (QgsMapMouseEvent *e) |
| Mouse double-click event for overriding. Default implementation does nothing. More...
|
|
virtual void | canvasMoveEvent (QgsMapMouseEvent *e) |
| Mouse move event for overriding. Default implementation does nothing. More...
|
|
virtual void | canvasPressEvent (QgsMapMouseEvent *e) |
| Mouse press event for overriding. Default implementation does nothing. More...
|
|
virtual void | canvasReleaseEvent (QgsMapMouseEvent *e) |
| Mouse release event for overriding. Default implementation does nothing. More...
|
|
virtual bool | canvasToolTipEvent (QHelpEvent *e) |
| Tooltip event for overriding. More...
|
|
virtual void | clean () |
| convenient method to clean members More...
|
|
virtual void | deactivate () |
| called when map tool is being deactivated More...
|
|
virtual Flags | flags () const |
| Returns the flags for the map tool. More...
|
|
virtual bool | gestureEvent (QGestureEvent *e) |
| gesture event for overriding. Default implementation does nothing. More...
|
|
bool | isActive () const |
| Returns if the current map tool active on the map canvas. More...
|
|
virtual void | keyPressEvent (QKeyEvent *e) |
| Key event for overriding. Default implementation does nothing. More...
|
|
virtual void | keyReleaseEvent (QKeyEvent *e) |
| Key event for overriding. Default implementation does nothing. More...
|
|
virtual void | populateContextMenu (QMenu *menu) |
| Allows the tool to populate and customize the given menu, prior to showing it in response to a right-mouse button click. More...
|
|
virtual bool | populateContextMenuWithEvent (QMenu *menu, QgsMapMouseEvent *event) |
| Allows the tool to populate and customize the given menu, prior to showing it in response to a right-mouse button click. More...
|
|
void | setAction (QAction *action) |
| Use this to associate a QAction to this maptool. More...
|
|
void | setButton (QAbstractButton *button) |
| Use this to associate a button to this maptool. More...
|
|
virtual void | setCursor (const QCursor &cursor) |
| Sets a user defined cursor. More...
|
|
QgsPointXY | toMapCoordinates (QPoint point) |
| Transforms a point from screen coordinates to map coordinates. More...
|
|
QString | toolName () |
| Emit map tool changed with the old tool. More...
|
|
virtual void | wheelEvent (QWheelEvent *e) |
| Mouse wheel event for overriding. Default implementation does nothing. More...
|
|