QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
The QgsAdvancedDigitizingFloater class is widget that floats next to the mouse pointer, and allow 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 } |
Available floater items. More... | |
typedef QFlags< FloaterItem > | FloaterItems |
Public Slots | |
void | setActive (bool active) |
Set whether the floater should be active or not. | |
void | setItemVisibility (const 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. | |
bool | itemVisibility (const QgsAdvancedDigitizingFloater::FloaterItem &item) const |
Returns true if the floater item visibility setting is enabled. | |
The QgsAdvancedDigitizingFloater class is widget that floats next to the mouse pointer, and allow interaction with the AdvancedDigitizing feature.
It proxies display and actions to QgsMapToolAdvancedDigitizingDockWidget.
Definition at line 40 of file qgsadvanceddigitizingfloater.h.
typedef QFlags< FloaterItem > QgsAdvancedDigitizingFloater::FloaterItems |
Definition at line 58 of file qgsadvanceddigitizingfloater.h.
|
strong |
Available floater items.
Enumerator | |
---|---|
XCoordinate | |
YCoordinate | |
MCoordinate | |
ZCoordinate | |
Angle | |
CommonAngleSnapping | |
Distance | |
Bearing |
Definition at line 47 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 26 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 186 of file qgsadvanceddigitizingfloater.cpp.
bool QgsAdvancedDigitizingFloater::itemVisibility | ( | const QgsAdvancedDigitizingFloater::FloaterItem & | item | ) | const |
Returns true
if the floater item visibility setting is enabled.
item | floater item |
Definition at line 191 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 196 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Set whether the floater item should be visible or not.
item | floater item |
visible |
Definition at line 205 of file qgsadvanceddigitizingfloater.cpp.