QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 27 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 187 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 192 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 197 of file qgsadvanceddigitizingfloater.cpp.
|
slot |
Set whether the floater item should be visible or not.
item | floater item |
visible |
Definition at line 206 of file qgsadvanceddigitizingfloater.cpp.