|
QGIS API Documentation 3.99.0-Master (8e76e220402)
|
A widget that floats next to the mouse pointer, and allows interaction with the AdvancedDigitizing feature. More...
#include <qgsadvanceddigitizingfloater.h>

Public Types | |
| enum class | FloaterItem : int { XCoordinate = 1 << 1 , YCoordinate = 1 << 2 , MCoordinate = 1 << 3 , ZCoordinate = 1 << 4 , Angle = 1 << 5 , CommonAngleSnapping = 1 << 6 , Distance = 1 << 7 , Bearing = 1 << 8 , Weight = 1 << 9 , Area = 1 << 10 , TotalLength = 1 << 11 } |
| Available floater items. More... | |
| typedef QFlags< FloaterItem > | FloaterItems |
Public Slots | |
| void | changeWeight (const QString &text) |
| Updates the weight value displayed in the floater for NURBSCurve. | |
| void | enabledChangedWeight (bool enabled) |
| Shows or hides the weight widget in the floater for NURBSCurve. | |
| void | focusOnWeight () |
| Requests focus on the weight input field for NURBSCurve. | |
| void | setActive (bool active) |
| Set whether the floater should be active or not. | |
| void | setItemMeasurementType (QgsAdvancedDigitizingFloater::FloaterItem item, Qgis::CadMeasurementDisplayType type) |
| Set whether the measurement display type for a floater item. | |
| void | setItemVisibility (QgsAdvancedDigitizingFloater::FloaterItem item, bool visible) |
| Set whether the floater item should be visible or not. | |
Public Member Functions | |
| QgsAdvancedDigitizingFloater (QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget) | |
| Create an advanced digitizing floater widget. | |
| bool | active () |
| Whether the floater is active or not. | |
| Qgis::CadMeasurementDisplayType | itemMeasurementDisplayType (QgsAdvancedDigitizingFloater::FloaterItem item) const |
| Returns the measurement display type for a floater item. | |
| bool | itemVisibility (QgsAdvancedDigitizingFloater::FloaterItem item) const |
Returns true if the floater item visibility setting is enabled. | |
Static Public Member Functions | |
| static bool | itemSupportsMeasurementType (QgsAdvancedDigitizingFloater::FloaterItem item) |
Returns true if a floater item supports display in different Qgis::CadMeasurementDisplayType values. | |
A widget that floats next to the mouse pointer, and allows interaction with the AdvancedDigitizing feature.
It proxies display and actions to QgsMapToolAdvancedDigitizingDockWidget.
Definition at line 42 of file qgsadvanceddigitizingfloater.h.
| typedef QFlags< FloaterItem > QgsAdvancedDigitizingFloater::FloaterItems |
Definition at line 62 of file qgsadvanceddigitizingfloater.h.
|
strong |
Available floater items.
Definition at line 48 of file qgsadvanceddigitizingfloater.h.
|
explicit |
Create an advanced digitizing floater widget.
| canvas | The map canvas on which the widget operates |
| cadDockWidget | The cadDockWidget to which the floater belongs |
Definition at line 33 of file qgsadvanceddigitizingfloater.cpp.
| bool QgsAdvancedDigitizingFloater::active | ( | ) |
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).
Definition at line 190 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Updates the weight value displayed in the floater for NURBSCurve.
| text | The weight value as a string |
Definition at line 699 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Shows or hides the weight widget in the floater for NURBSCurve.
| enabled | Whether weight editing is active |
Definition at line 704 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Requests focus on the weight input field for NURBSCurve.
Definition at line 633 of file qgsadvanceddigitizingfloater.cpp.
| Qgis::CadMeasurementDisplayType QgsAdvancedDigitizingFloater::itemMeasurementDisplayType | ( | QgsAdvancedDigitizingFloater::FloaterItem | item | ) | const |
Returns the measurement display type for a floater item.
If the item does not support measurement types (see itemSupportsMeasurementType()), Qgis::CadMeasurementDisplayType::Hidden will be returned. For these items use itemVisibility() instead.
Definition at line 200 of file qgsadvanceddigitizingfloater.cpp.
|
static |
Returns true if a floater item supports display in different Qgis::CadMeasurementDisplayType values.
Definition at line 337 of file qgsadvanceddigitizingfloater.cpp.
| bool QgsAdvancedDigitizingFloater::itemVisibility | ( | QgsAdvancedDigitizingFloater::FloaterItem | item | ) | const |
Returns true if the floater item visibility setting is enabled.
| item | floater item |
Definition at line 195 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
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).
| active |
Definition at line 211 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Set whether the measurement display type for a floater item.
Definition at line 266 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Set whether the floater item should be visible or not.
| item | floater item |
| visible |
Definition at line 220 of file qgsadvanceddigitizingfloater.cpp.