QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
The QgsAdvancedDigitizingDockWidget class is a dockable widget used to handle the CAD tools on top of a selection of map tools. More...
#include <qgsadvanceddigitizingdockwidget.h>
Classes | |
class | CadConstraint |
The CadConstraint is an abstract class for all basic constraints (angle/distance/x/y). More... | |
Public Types | |
enum | CadCapacity { AbsoluteAngle = 1 , RelativeAngle = 2 , RelativeCoordinates = 4 , Distance = 8 } |
The CadCapacity enum defines the possible constraints to be set depending on the number of points in the CAD point list (the list of points currently digitized) More... | |
enum | WidgetSetMode { ReturnPressed , FocusOut , TextEdited } |
Type of interaction to simulate when editing values from external widget. More... | |
Signals | |
void | cadEnabledChanged (bool enabled) |
Signals for external widgets that need to update according to current values. More... | |
void | enabledChangedAngle (bool enabled) |
Emitted whenever the angle field is enabled or disabled. More... | |
void | enabledChangedDistance (bool enabled) |
Emitted whenever the distance field is enabled or disabled. More... | |
void | enabledChangedM (bool enabled) |
Emitted whenever the M field is enabled or disabled. More... | |
void | enabledChangedX (bool enabled) |
Emitted whenever the X field is enabled or disabled. More... | |
void | enabledChangedY (bool enabled) |
Emitted whenever the Y field is enabled or disabled. More... | |
void | enabledChangedZ (bool enabled) |
Emitted whenever the Z field is enabled or disabled. More... | |
void | focusOnAngleRequested () |
Emitted whenever the angle field should get the focus using the shortcuts (A). More... | |
void | focusOnDistanceRequested () |
Emitted whenever the distance field should get the focus using the shortcuts (D). More... | |
void | focusOnMRequested () |
Emitted whenever the M field should get the focus using the shortcuts (M). More... | |
void | focusOnXRequested () |
Emitted whenever the X field should get the focus using the shortcuts (X). More... | |
void | focusOnYRequested () |
Emitted whenever the Y field should get the focus using the shortcuts (Y). More... | |
void | focusOnZRequested () |
Emitted whenever the Z field should get the focus using the shortcuts (Z). More... | |
void | lockAngleChanged (bool locked) |
Emitted whenever the angle parameter is locked. More... | |
void | lockDistanceChanged (bool locked) |
Emitted whenever the distance parameter is locked. More... | |
void | lockMChanged (bool locked) |
Emitted whenever the M parameter is locked. More... | |
void | lockXChanged (bool locked) |
Emitted whenever the X parameter is locked. More... | |
void | lockYChanged (bool locked) |
Emitted whenever the Y parameter is locked. More... | |
void | lockZChanged (bool locked) |
Emitted whenever the Z parameter is locked. More... | |
Q_DECL_DEPRECATED void | pointChanged (const QgsPointXY &point) |
Sometimes a constraint may change the current point out of a mouse event. More... | |
void | pointChangedV2 (const QgsPoint &point) |
Sometimes a constraint may change the current point out of a mouse event. More... | |
void | popWarning () |
Remove any previously emitted warnings (if any) More... | |
void | pushWarning (const QString &message) |
Push a warning. More... | |
void | relativeAngleChanged (bool relative) |
Emitted whenever the angleX parameter is toggled between absolute and relative. More... | |
void | relativeMChanged (bool relative) |
Emitted whenever the M parameter is toggled between absolute and relative. More... | |
void | relativeXChanged (bool relative) |
Emitted whenever the X parameter is toggled between absolute and relative. More... | |
void | relativeYChanged (bool relative) |
Emitted whenever the Y parameter is toggled between absolute and relative. More... | |
void | relativeZChanged (bool relative) |
Emitted whenever the Z parameter is toggled between absolute and relative. More... | |
void | softLockLineExtensionChanged (bool locked) |
Emitted whenever the soft line extension parameter is locked. More... | |
void | softLockXyChanged (bool locked) |
Emitted whenever the soft x/y extension parameter is locked. More... | |
void | valueAngleChanged (const QString &value) |
Emitted whenever the angle value changes (either the mouse moved, or the user changed the input). More... | |
void | valueDistanceChanged (const QString &value) |
Emitted whenever the distance value changes (either the mouse moved, or the user changed the input). More... | |
void | valueMChanged (const QString &value) |
Emitted whenever the M value changes (either the mouse moved, or the user changed the input). More... | |
void | valueXChanged (const QString &value) |
Emitted whenever the X value changes (either the mouse moved, or the user changed the input). More... | |
void | valueYChanged (const QString &value) |
Emitted whenever the Y value changes (either the mouse moved, or the user changed the input). More... | |
void | valueZChanged (const QString &value) |
Emitted whenever the Z value changes (either the mouse moved, or the user changed the input). More... | |
Signals inherited from QgsDockWidget | |
void | closed () |
Emitted when dock widget is closed. More... | |
void | closedStateChanged (bool wasClosed) |
Emitted when dock widget is closed (or opened). More... | |
void | opened () |
Emitted when dock widget is opened. More... | |
void | openedStateChanged (bool wasOpened) |
Emitted when dock widget is opened (or closed). More... | |
Public Member Functions | |
QgsAdvancedDigitizingDockWidget (QgsMapCanvas *canvas, QWidget *parent=nullptr) | |
Create an advanced digitizing dock widget. More... | |
void | addPoint (const QgsPointXY &point) |
Adds point to the CAD point list. More... | |
bool | alignToSegment (QgsMapMouseEvent *e, QgsAdvancedDigitizingDockWidget::CadConstraint::LockMode lockMode=QgsAdvancedDigitizingDockWidget::CadConstraint::HardLock) |
align to segment for between line constraint. More... | |
bool | applyConstraints (QgsMapMouseEvent *e) |
apply the CAD constraints. More... | |
Qgis::BetweenLineConstraint | betweenLineConstraint () const |
Returns the between line constraints which are used to place perpendicular/parallel segments to snapped segments on the canvas. More... | |
bool | cadEnabled () const |
determines if CAD tools are enabled or if map tools behaves "nomally" More... | |
bool | canvasKeyPressEventFilter (QKeyEvent *e) |
Filter key events to e.g. More... | |
CadCapacities | capacities () const |
Returns the capacities. More... | |
void | clear () |
Clear any cached previous clicks and helper lines. More... | |
void | clearLockedSnapVertices (bool force=true) |
Removes all points from the locked snap vertex list. More... | |
void | clearPoints () |
Removes all points from the CAD point list. More... | |
bool | commonAngleConstraint () const |
Returns true if a constraint on a common angle is active. More... | |
const CadConstraint * | constraintAngle () const |
Returns the CadConstraint on the angle. More... | |
const CadConstraint * | constraintDistance () const |
Returns the CadConstraint on the distance. More... | |
const CadConstraint * | constraintLineExtension () const |
Returns the CadConstraint. More... | |
const CadConstraint * | constraintM () const |
Returns the CadConstraint on the M coordinate. More... | |
const CadConstraint * | constraintX () const |
Returns the CadConstraint on the X coordinate. More... | |
const CadConstraint * | constraintXyVertex () const |
Returns the CadConstraint. More... | |
const CadConstraint * | constraintY () const |
Returns the CadConstraint on the Y coordinate. More... | |
const CadConstraint * | constraintZ () const |
Returns the CadConstraint on the Z coordinate. More... | |
bool | constructionMode () const |
construction mode is used to draw intermediate points. These points won't be given any further (i.e. to the map tools) More... | |
Q_DECL_DEPRECATED QgsPointXY | currentPoint (bool *exists=nullptr) const |
The last point. More... | |
QgsPoint | currentPointLayerCoordinates (QgsMapLayer *layer) const |
Returns the last CAD point, in a map layer's coordinates. More... | |
QgsPoint | currentPointV2 (bool *exists=nullptr) const |
The last point. More... | |
void | disable () |
Disable the widget. More... | |
void | enable () |
Enables the tool (call this when an appropriate map tool is set and in the condition to make use of cad digitizing) Normally done automatically from QgsMapToolAdvancedDigitizing::activate() but may need to be fine tuned if the map tool depends on preconditions like a feature selection. More... | |
QAction * | enableAction () |
Returns the action used to enable/disable the tools. More... | |
double | getLineM () const |
Convenient method to get the M value from the line edit wiget. More... | |
double | getLineZ () const |
Convenient method to get the Z value from the line edit wiget. More... | |
void | keyPressEvent (QKeyEvent *e) override |
Qgis::LineExtensionSide | lineExtensionSide () const |
Returns on which side of the constraint line extension point, the line was created. More... | |
QList< QgsPointLocator::Match > | lockedSnapVertices () const |
Returns the snap matches whose vertices have been locked. More... | |
QgsPointLocator::Match | mapPointMatch () const |
Returns the point locator match. More... | |
Q_DECL_DEPRECATED QgsPointXY | penultimatePoint (bool *exists=nullptr) const |
The penultimate point. More... | |
QgsPoint | penultimatePointV2 (bool *exists=nullptr) const |
The penultimate point. More... | |
int | pointsCount () const |
The number of points in the CAD point helper list. More... | |
Q_DECL_DEPRECATED QgsPointXY | previousPoint (bool *exists=nullptr) const |
The previous point. More... | |
QgsPoint | previousPointV2 (bool *exists=nullptr) const |
The previous point. More... | |
void | releaseLocks (bool releaseRepeatingLocks=true) |
unlock all constraints More... | |
void | removePreviousPoint () |
Remove previous point in the CAD point list. More... | |
void | setAngle (const QString &value, WidgetSetMode mode) |
Set the angle value on the widget. More... | |
void | setDistance (const QString &value, WidgetSetMode mode) |
Set the distance value on the widget. More... | |
void | setEnabledM (bool enable) |
Sets whether M is enabled. More... | |
void | setEnabledZ (bool enable) |
Sets whether Z is enabled. More... | |
void | setM (const QString &value, WidgetSetMode mode) |
Set the M value on the widget. More... | |
void | setPoints (const QList< QgsPointXY > &points) |
Configures list of current CAD points. More... | |
void | setX (const QString &value, WidgetSetMode mode) |
Set the X value on the widget. More... | |
void | setY (const QString &value, WidgetSetMode mode) |
Set the Y value on the widget. More... | |
void | setZ (const QString &value, WidgetSetMode mode) |
Set the Z value on the widget. More... | |
QList< QgsPointXY > | snappedSegment () const |
Snapped to a segment. More... | |
bool | snappedToVertex () const |
Is it snapped to a vertex. More... | |
double | softLockX () const |
Returns the X value of the X soft lock. The value is NaN is the constraint isn't magnetized to a line. More... | |
double | softLockY () const |
Returns the Y value of the Y soft lock. The value is NaN is the constraint isn't magnetized to a line. More... | |
void | switchZM () |
Determines if Z or M will be enabled. More... | |
void | updateCadPaintItem () |
Updates canvas item that displays constraints on the ma. More... | |
Public Member Functions inherited from QgsDockWidget | |
QgsDockWidget (const QString &title, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
Constructor for QgsDockWidget. More... | |
QgsDockWidget (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
Constructor for QgsDockWidget. More... | |
bool | isUserVisible () const |
Returns true if the dock is both opened and raised to the front (ie not hidden by any other tabs. More... | |
void | setToggleVisibilityAction (QAction *action) |
Links an action to the dock, so that toggling the action will automatically set the dock's visibility to suit (and changing the dock visibility will update the action's state). More... | |
QAction * | toggleVisibilityAction () |
Returns the action linked to the dock. More... | |
Friends | |
class | TestQgsAdvancedDigitizing |
class | TestQgsAdvancedDigitizingDockWidget |
Additional Inherited Members | |
Public Slots inherited from QgsDockWidget | |
void | setUserVisible (bool visible) |
Sets the dock widget as visible to a user, ie both shown and raised to the front. More... | |
void | toggleUserVisible () |
Toggles whether the dock is user visible. More... | |
Protected Member Functions inherited from QgsDockWidget | |
void | closeEvent (QCloseEvent *) override |
void | showEvent (QShowEvent *event) override |
The QgsAdvancedDigitizingDockWidget class is a dockable widget used to handle the CAD tools on top of a selection of map tools.
It handles both the UI and the constraints. Constraints are applied by implementing filters called from QgsMapToolAdvancedDigitizing.
Definition at line 50 of file qgsadvanceddigitizingdockwidget.h.
The CadCapacity enum defines the possible constraints to be set depending on the number of points in the CAD point list (the list of points currently digitized)
Enumerator | |
---|---|
AbsoluteAngle | Azimuth. |
RelativeAngle | Also for parallel and perpendicular. |
RelativeCoordinates | This corresponds to distance and relative coordinates. |
Distance | Distance. |
Definition at line 61 of file qgsadvanceddigitizingdockwidget.h.
Type of interaction to simulate when editing values from external widget.
Enumerator | |
---|---|
ReturnPressed | |
FocusOut | |
TextEdited |
Definition at line 76 of file qgsadvanceddigitizingdockwidget.h.
|
explicit |
Create an advanced digitizing dock widget.
canvas | The map canvas on which the widget operates |
parent | The parent |
Definition at line 41 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::addPoint | ( | const QgsPointXY & | point | ) |
Adds point to the CAD point list.
Definition at line 1698 of file qgsadvanceddigitizingdockwidget.cpp.
bool QgsAdvancedDigitizingDockWidget::alignToSegment | ( | QgsMapMouseEvent * | e, |
QgsAdvancedDigitizingDockWidget::CadConstraint::LockMode | lockMode = QgsAdvancedDigitizingDockWidget::CadConstraint::HardLock |
||
) |
align to segment for between line constraint.
If between line constraints are used, this will determine the angle to be locked depending on the snapped segment.
Definition at line 1255 of file qgsadvanceddigitizingdockwidget.cpp.
bool QgsAdvancedDigitizingDockWidget::applyConstraints | ( | QgsMapMouseEvent * | e | ) |
apply the CAD constraints.
The will modify the position of the map event in map coordinates by applying the CAD constraints.
false
if no solution was found (invalid constraints) Definition at line 1015 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
Returns the between line constraints which are used to place perpendicular/parallel segments to snapped segments on the canvas.
Definition at line 288 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
determines if CAD tools are enabled or if map tools behaves "nomally"
Definition at line 261 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Signals for external widgets that need to update according to current values.
Emitted whenever CAD is enabled or disabled
enabled | Whether CAD is enabled or not |
bool QgsAdvancedDigitizingDockWidget::canvasKeyPressEventFilter | ( | QKeyEvent * | e | ) |
Filter key events to e.g.
toggle construction mode or adapt constraints
e | A mouse event (may be modified) |
Definition at line 1296 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
Returns the capacities.
Definition at line 540 of file qgsadvanceddigitizingdockwidget.h.
void QgsAdvancedDigitizingDockWidget::clear | ( | ) |
Clear any cached previous clicks and helper lines.
Definition at line 1327 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::clearLockedSnapVertices | ( | bool | force = true | ) |
Removes all points from the locked snap vertex list.
force | Clears the list even if the constraints that use it are still locked. |
Definition at line 1687 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::clearPoints | ( | ) |
Removes all points from the CAD point list.
Definition at line 1725 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
Returns true
if a constraint on a common angle is active.
Definition at line 310 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint on the angle.
Definition at line 290 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint on the distance.
Definition at line 292 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint.
Definition at line 313 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint on the M coordinate.
Definition at line 308 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint on the X coordinate.
Definition at line 294 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint.
Definition at line 319 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint on the Y coordinate.
Definition at line 296 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Returns the CadConstraint on the Z coordinate.
Definition at line 302 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
construction mode is used to draw intermediate points. These points won't be given any further (i.e. to the map tools)
Definition at line 282 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
The last point.
Helper for the CAD point list. The CAD point list is the list of points currently digitized. It contains both "normal" points and intermediate points (construction mode).
Definition at line 395 of file qgsadvanceddigitizingdockwidget.h.
QgsPoint QgsAdvancedDigitizingDockWidget::currentPointLayerCoordinates | ( | QgsMapLayer * | layer | ) | const |
Returns the last CAD point, in a map layer's coordinates.
Definition at line 1823 of file qgsadvanceddigitizingdockwidget.cpp.
QgsPoint QgsAdvancedDigitizingDockWidget::currentPointV2 | ( | bool * | exists = nullptr | ) | const |
The last point.
Helper for the CAD point list. The CAD point list is the list of points currently digitized. It contains both "normal" points and intermediate points (construction mode).
Definition at line 1813 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::disable | ( | ) |
Disable the widget.
Normally done automatically from QgsMapToolAdvancedDigitizing::deactivate().
Definition at line 1666 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::enable | ( | ) |
Enables the tool (call this when an appropriate map tool is set and in the condition to make use of cad digitizing) Normally done automatically from QgsMapToolAdvancedDigitizing::activate() but may need to be fine tuned if the map tool depends on preconditions like a feature selection.
Definition at line 1622 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
Returns the action used to enable/disable the tools.
Definition at line 443 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Emitted whenever the angle field is enabled or disabled.
Depending on the context, some parameters do not make sense (e.g. you need a previous point to define a distance). Could be used by widgets that must reflect the current advanced digitizing state.
enabled | Whether the angle parameter is enabled or not. |
|
signal |
Emitted whenever the distance field is enabled or disabled.
Depending on the context, some parameters do not make sense (e.g. you need a previous point to define a distance). Could be used by widgets that must reflect the current advanced digitizing state.
enabled | Whether the distance parameter is enabled or not. |
|
signal |
Emitted whenever the M field is enabled or disabled.
Depending on the context, some parameters do not make sense (e.g. you need a previous point to define a distance). Could be used by widgets that must reflect the current advanced digitizing state.
enabled | Whether the M parameter is enabled or not. |
|
signal |
Emitted whenever the X field is enabled or disabled.
Depending on the context, some parameters do not make sense (e.g. you need a previous point to define a distance). Could be used by widgets that must reflect the current advanced digitizing state.
enabled | Whether the X parameter is enabled or not. |
|
signal |
Emitted whenever the Y field is enabled or disabled.
Depending on the context, some parameters do not make sense (e.g. you need a previous point to define a distance). Could be used by widgets that must reflect the current advanced digitizing state.
enabled | Whether the Y parameter is enabled or not. |
|
signal |
Emitted whenever the Z field is enabled or disabled.
Depending on the context, some parameters do not make sense (e.g. you need a previous point to define a distance). Could be used by widgets that must reflect the current advanced digitizing state.
enabled | Whether the Z parameter is enabled or not. |
|
signal |
Emitted whenever the angle field should get the focus using the shortcuts (A).
Could be used by widgets to capture the focus when a field is being edited.
|
signal |
Emitted whenever the distance field should get the focus using the shortcuts (D).
Could be used by widgets to capture the focus when a field is being edited.
|
signal |
Emitted whenever the M field should get the focus using the shortcuts (M).
Could be used by widgets to capture the focus when a field is being edited.
|
signal |
Emitted whenever the X field should get the focus using the shortcuts (X).
Could be used by widgets to capture the focus when a field is being edited.
|
signal |
Emitted whenever the Y field should get the focus using the shortcuts (Y).
Could be used by widgets to capture the focus when a field is being edited.
|
signal |
Emitted whenever the Z field should get the focus using the shortcuts (Z).
Could be used by widgets to capture the focus when a field is being edited.
double QgsAdvancedDigitizingDockWidget::getLineM | ( | ) | const |
Convenient method to get the M value from the line edit wiget.
Definition at line 1866 of file qgsadvanceddigitizingdockwidget.cpp.
double QgsAdvancedDigitizingDockWidget::getLineZ | ( | ) | const |
Convenient method to get the Z value from the line edit wiget.
Definition at line 1861 of file qgsadvanceddigitizingdockwidget.cpp.
|
override |
Definition at line 1333 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
Returns on which side of the constraint line extension point, the line was created.
Definition at line 316 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Emitted whenever the angle parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the distance parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
inline |
Returns the snap matches whose vertices have been locked.
Definition at line 337 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Emitted whenever the M parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the X parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the Y parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the Z parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
inline |
Returns the point locator match.
Definition at line 331 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
The penultimate point.
Helper for the CAD point list. The CAD point list is the list of points currently digitized. It contains both "normal" points and intermediate points (construction mode).
Definition at line 425 of file qgsadvanceddigitizingdockwidget.h.
QgsPoint QgsAdvancedDigitizingDockWidget::penultimatePointV2 | ( | bool * | exists = nullptr | ) | const |
The penultimate point.
Helper for the CAD point list. The CAD point list is the list of points currently digitized. It contains both "normal" points and intermediate points (construction mode).
Definition at line 1846 of file qgsadvanceddigitizingdockwidget.cpp.
|
signal |
Sometimes a constraint may change the current point out of a mouse event.
This happens normally when a constraint is toggled.
point | The last known digitizing point. Can be used to emulate a mouse event. |
|
signal |
Sometimes a constraint may change the current point out of a mouse event.
This happens normally when a constraint is toggled.
point | The last known digitizing point. Can be used to emulate a mouse event. |
|
inline |
The number of points in the CAD point helper list.
Definition at line 430 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Remove any previously emitted warnings (if any)
|
inline |
The previous point.
Helper for the CAD point list. The CAD point list is the list of points currently digitized. It contains both "normal" points and intermediate points (construction mode).
Definition at line 410 of file qgsadvanceddigitizingdockwidget.h.
QgsPoint QgsAdvancedDigitizingDockWidget::previousPointV2 | ( | bool * | exists = nullptr | ) | const |
The previous point.
Helper for the CAD point list. The CAD point list is the list of points currently digitized. It contains both "normal" points and intermediate points (construction mode).
Definition at line 1836 of file qgsadvanceddigitizingdockwidget.cpp.
|
signal |
Push a warning.
message | An informative message |
|
signal |
Emitted whenever the angleX parameter is toggled between absolute and relative.
Could be used by widgets that must reflect the current advanced digitizing state.
relative | Whether the angle parameter is relative or not. |
|
signal |
Emitted whenever the M parameter is toggled between absolute and relative.
Could be used by widgets that must reflect the current advanced digitizing state.
relative | Whether the M parameter is relative or not. |
|
signal |
Emitted whenever the X parameter is toggled between absolute and relative.
Could be used by widgets that must reflect the current advanced digitizing state.
relative | Whether the X parameter is relative or not. |
|
signal |
Emitted whenever the Y parameter is toggled between absolute and relative.
Could be used by widgets that must reflect the current advanced digitizing state.
relative | Whether the Y parameter is relative or not. |
|
signal |
Emitted whenever the Z parameter is toggled between absolute and relative.
Could be used by widgets that must reflect the current advanced digitizing state.
relative | Whether the Z parameter is relative or not. |
void QgsAdvancedDigitizingDockWidget::releaseLocks | ( | bool | releaseRepeatingLocks = true | ) |
unlock all constraints
releaseRepeatingLocks | set to false to preserve the lock for any constraints set to repeating lock mode |
Definition at line 540 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::removePreviousPoint | ( | ) |
Remove previous point in the CAD point list.
Definition at line 1714 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setAngle | ( | const QString & | value, |
WidgetSetMode | mode | ||
) |
Set the angle value on the widget.
Can be used to set constraints by external widgets.
mode | What type of interaction to emulate |
value | The value (as a QString, as it could be an expression) |
Definition at line 293 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setDistance | ( | const QString & | value, |
WidgetSetMode | mode | ||
) |
Set the distance value on the widget.
Can be used to set constraints by external widgets.
mode | What type of interaction to emulate |
value | The value (as a QString, as it could be an expression) |
Definition at line 305 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setEnabledM | ( | bool | enable | ) |
Sets whether M is enabled.
Definition at line 408 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setEnabledZ | ( | bool | enable | ) |
Sets whether Z is enabled.
Definition at line 395 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setM | ( | const QString & | value, |
WidgetSetMode | mode | ||
) |
Set the M value on the widget.
Can be used to set constraints by external widgets.
mode | What type of interaction to emulate |
value | The value (as a QString, as it could be an expression) |
Definition at line 276 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setPoints | ( | const QList< QgsPointXY > & | points | ) |
Configures list of current CAD points.
Some map tools may find it useful to override list of CAD points that is otherwise automatically populated when user clicks with left mouse button on map canvas.
Definition at line 1362 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setX | ( | const QString & | value, |
WidgetSetMode | mode | ||
) |
Set the X value on the widget.
Can be used to set constraints by external widgets.
mode | What type of interaction to emulate |
value | The value (as a QString, as it could be an expression) |
Definition at line 225 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setY | ( | const QString & | value, |
WidgetSetMode | mode | ||
) |
Set the Y value on the widget.
Can be used to set constraints by external widgets.
mode | What type of interaction to emulate |
value | The value (as a QString, as it could be an expression) |
Definition at line 242 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::setZ | ( | const QString & | value, |
WidgetSetMode | mode | ||
) |
Set the Z value on the widget.
Can be used to set constraints by external widgets.
mode | What type of interaction to emulate |
value | The value (as a QString, as it could be an expression) |
Definition at line 259 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
Snapped to a segment.
Definition at line 440 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Is it snapped to a vertex.
Definition at line 435 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Emitted whenever the soft line extension parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
inline |
Returns the X value of the X soft lock. The value is NaN is the constraint isn't magnetized to a line.
Definition at line 322 of file qgsadvanceddigitizingdockwidget.h.
|
signal |
Emitted whenever the soft x/y extension parameter is locked.
Could be used by widgets that must reflect the current advanced digitizing state.
|
inline |
Returns the Y value of the Y soft lock. The value is NaN is the constraint isn't magnetized to a line.
Definition at line 325 of file qgsadvanceddigitizingdockwidget.h.
void QgsAdvancedDigitizingDockWidget::switchZM | ( | ) |
Determines if Z or M will be enabled.
Definition at line 356 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::updateCadPaintItem | ( | ) |
Updates canvas item that displays constraints on the ma.
Definition at line 1682 of file qgsadvanceddigitizingdockwidget.cpp.
|
signal |
Emitted whenever the angle value changes (either the mouse moved, or the user changed the input).
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the distance value changes (either the mouse moved, or the user changed the input).
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the M value changes (either the mouse moved, or the user changed the input).
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the X value changes (either the mouse moved, or the user changed the input).
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the Y value changes (either the mouse moved, or the user changed the input).
Could be used by widgets that must reflect the current advanced digitizing state.
|
signal |
Emitted whenever the Z value changes (either the mouse moved, or the user changed the input).
Could be used by widgets that must reflect the current advanced digitizing state.
|
friend |
Definition at line 1034 of file qgsadvanceddigitizingdockwidget.h.
|
friend |
Definition at line 1035 of file qgsadvanceddigitizingdockwidget.h.