Class: QgsAdvancedDigitizingFloater¶
A widget that floats next to the mouse pointer, and allows interaction with the AdvancedDigitizing feature.
It proxies display and actions to
QgsMapToolAdvancedDigitizingDockWidget.
Note
This class is a technology preview and unstable API.
Added in version 3.8.
QgsAdvancedDigitizingFloater¶
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Enums
Available floater items |
Methods
Whether the floater is active or not. |
|
Updates the weight value displayed in the floater for NURBSCurve. |
|
Shows or hides the weight widget in the floater for NURBSCurve. |
|
Requests focus on the weight input field for NURBSCurve. |
|
Returns the measurement display type for a floater item. |
|
Returns |
|
Set whether the floater should be active or not. |
|
Set whether the measurement display type for a floater item. |
|
Set whether the floater item should be visible or not. |
Static Methods
Returns |
- class qgis.gui.QgsAdvancedDigitizingFloater[source]¶
Bases:
QWidget- __init__(canvas: QgsMapCanvas | None, cadDockWidget: QgsAdvancedDigitizingDockWidget | None)
Create an advanced digitizing floater widget
- Parameters:
canvas (Optional[QgsMapCanvas]) – The map canvas on which the widget operates
cadDockWidget (Optional[QgsAdvancedDigitizingDockWidget]) – The cadDockWidget to which the floater belongs
Added in version 3.8.
- class FloaterItem(*values)¶
Bases:
IntFlagAvailable floater items
XCoordinate: X coordinateYCoordinate: Y coordinateMCoordinate: M coordinateZCoordinate: Z coordinateAngle: Angle between segmentsCommonAngleSnapping: Common anglesDistance: Distance (segment length)Bearing: Segment bearingWeight: Weight for NURBSCurveAdded in version 4.0.
Area: Total areaAdded in version 4.0.
TotalLength: Total length (or perimeter)Added in version 4.0.
- Angle = 32¶
- Area = 1024¶
- Bearing = 256¶
- CommonAngleSnapping = 64¶
- Distance = 128¶
- MCoordinate = 8¶
- TotalLength = 2048¶
- Weight = 512¶
- XCoordinate = 2¶
- YCoordinate = 4¶
- ZCoordinate = 16¶
- FloaterItems()¶
- active(self) bool[source]¶
Whether the floater is active or not. Note that the floater may be active but not visible (e.g. if the mouse is not over the canvas).
Added in version 3.8.
- Return type:
bool
- changeWeight(self, text: str | None)[source]¶
Updates the weight value displayed in the floater for NURBSCurve.
- Parameters:
text (Optional[str]) – The weight value as a string
Added in version 4.0.
- enabledChangedWeight(self, enabled: bool)[source]¶
Shows or hides the weight widget in the floater for NURBSCurve.
- Parameters:
enabled (bool) – Whether weight editing is active
Added in version 4.0.
- focusOnWeight(self)[source]¶
Requests focus on the weight input field for NURBSCurve.
Added in version 4.0.
- itemMeasurementDisplayType(self, item: QgsAdvancedDigitizingFloater.FloaterItem) Qgis.CadMeasurementDisplayType[source]¶
Returns the measurement display type for a floater
item.If the
itemdoes not support measurement types (seeitemSupportsMeasurementType()),Qgis.CadMeasurementDisplayType.Hidden will be returned. For these items useitemVisibility()instead.Added in version 4.0.
- Parameters:
- Return type:
- static itemSupportsMeasurementType(item: QgsAdvancedDigitizingFloater.FloaterItem) bool[source]¶
Returns
Trueif a floateritemsupports display in differentQgis.CadMeasurementDisplayType values.Added in version 4.0.
- Parameters:
- Return type:
bool
- itemVisibility(self, item: QgsAdvancedDigitizingFloater.FloaterItem) bool[source]¶
Returns
Trueif the floateritemvisibility setting is enabled.- Parameters:
item (QgsAdvancedDigitizingFloater.FloaterItem) – floater item
Added in version 3.32.
- Return type:
bool
- setActive(self, active: bool)[source]¶
Set whether the floater should be active or not. Note that the floater may be active but not visible (e.g. if the mouse is not over the canvas).
- Parameters:
active (bool)
Added in version 3.8.
- setItemMeasurementType(self, item: QgsAdvancedDigitizingFloater.FloaterItem, type: Qgis.CadMeasurementDisplayType)[source]¶
Set whether the measurement display
typefor a floateritem.Added in version 4.0.
- Parameters:
- setItemVisibility(self, item: QgsAdvancedDigitizingFloater.FloaterItem, visible: bool)[source]¶
Set whether the floater
itemshould be visible or not.- Parameters:
item (QgsAdvancedDigitizingFloater.FloaterItem) – floater item
visible (bool)
Added in version 3.32.