Class: QgsInputControllerManager¶
Manages input control devices.
QgsInputControllerManager is not usually directly created,
but rather accessed through QgsGui.inputControllerManager().
Added in version 3.34.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Methods
Returns a list of the device IDs of available 2D map controllers. |
|
Returns a list of the device IDs of available 3D map controllers. |
|
Returns a new instance of the 2D map controller with the specified deviceId. |
|
Returns a new instance of the 3D map controller with the specified deviceId. |
|
Registers a new 2D map controller. |
|
Registers a new 3D map controller. |
- class qgis.gui.QgsInputControllerManager[source]¶
Bases:
QObject- __init__(parent: QObject | None = None)
Constructor for QgsInputControllerManager, with the specified
parentobject.Note
QgsInputControllerManager is not usually directly created, but rather accessed through
QgsGui.inputControllerManager().- Parameters:
parent (Optional[QObject] = None)
- available2DMapControllers(self) list[str][source]¶
Returns a list of the device IDs of available 2D map controllers.
See also
See also
- Return type:
list[str]
- available3DMapControllers(self) list[str][source]¶
Returns a list of the device IDs of available 3D map controllers.
See also
See also
- Return type:
list[str]
- create2DMapController(self, deviceId: str | None) QgsAbstract2DMapController | None[source]¶
Returns a new instance of the 2D map controller with the specified
deviceId.The caller takes ownership of the returned object.
Will return
Noneif no matching controller is found.See also
- Parameters:
deviceId (Optional[str])
- Return type:
Optional[QgsAbstract2DMapController]
- create3DMapController(self, deviceId: str | None) QgsAbstract3DMapController | None[source]¶
Returns a new instance of the 3D map controller with the specified
deviceId.The caller takes ownership of the returned object.
Will return
Noneif no matching controller is found.See also
- Parameters:
deviceId (Optional[str])
- Return type:
Optional[QgsAbstract3DMapController]
- register2DMapController(self, controller: QgsAbstract2DMapController | None) bool[source]¶
Registers a new 2D map
controller.Ownership of
controlleris transferred to the manager.Returns
Trueif the controller was successfully registered, orFalseif it could not be registered (e.g. if a controller with matching deviceId has already been registered).See also
- Parameters:
controller (Optional[QgsAbstract2DMapController])
- Return type:
bool
- register3DMapController(self, controller: QgsAbstract3DMapController | None) bool[source]¶
Registers a new 3D map
controller.Ownership of
controlleris transferred to the manager.Returns
Trueif the controller was successfully registered, orFalseif it could not be registered (e.g. if a controller with matching deviceId has already been registered).See also
- Parameters:
controller (Optional[QgsAbstract3DMapController])
- Return type:
bool