Class: Qgs3DMapTool¶
Base class for map tools operating on 3D map canvas.
Added in version 4.0.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Methods
Returns the parent Qgs3DMapCanvas |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of Qgs3DMapTool. See the FAQ for more details.
Called when set as currently active map tool |
|
Mouse cursor to be used when the tool is active |
|
Called when map tool is being deactivated |
|
Reimplement to handle key press event forwarded by the parent Qgs3DMapCanvas |
|
Reimplement to handle key release event forwarded by the parent Qgs3DMapCanvas |
|
Reimplement to handle mouse move event forwarded by the parent Qgs3DMapCanvas |
|
Reimplement to handle mouse event forwarded by the parent Qgs3DMapCanvas |
|
Reimplement to handle mouse release event forwarded by the parent Qgs3DMapCanvas |
|
Reimplement to handle mouse wheel event forwarded by the parent Qgs3DMapCanvas |
- class qgis._3d.Qgs3DMapTool[source]¶
Bases:
QObject- __init__(canvas: Qgs3DMapCanvas | None)¶
Base constructor for a Qgs3DMapTool for the specified
canvas- Parameters:
canvas (Optional[Qgs3DMapCanvas])
- canvas(self) Qgs3DMapCanvas | None[source]¶
Returns the parent Qgs3DMapCanvas
- Return type:
- virtual cursor(self) QCursor[source]¶
Mouse cursor to be used when the tool is active
- Return type:
QCursor
- virtual keyPressEvent(self, event: QKeyEvent | None)[source]¶
Reimplement to handle key press
eventforwarded by the parent Qgs3DMapCanvas- Parameters:
event (Optional[QKeyEvent])
- virtual keyReleaseEvent(self, event: QKeyEvent | None)[source]¶
Reimplement to handle key release
eventforwarded by the parent Qgs3DMapCanvas- Parameters:
event (Optional[QKeyEvent])
- virtual mouseMoveEvent(self, event: QMouseEvent | None)[source]¶
Reimplement to handle mouse move
eventforwarded by the parent Qgs3DMapCanvas- Parameters:
event (Optional[QMouseEvent])
- virtual mousePressEvent(self, event: QMouseEvent | None)[source]¶
Reimplement to handle mouse
eventforwarded by the parent Qgs3DMapCanvas- Parameters:
event (Optional[QMouseEvent])