| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
The CadConstraint is an abstract class for all basic constraints (angle/distance/x/y). It contains all values (locked, value, relative) and pointers to corresponding widgets. More...
#include <qgsadvanceddigitizingdockwidget.h>
Public Types | |
| enum | LockMode { NoLock, SoftLock, HardLock } | 
| The lock mode.  More... | |
Public Member Functions | |
| CadConstraint (QLineEdit *lineEdit, QToolButton *lockerButton, QToolButton *relativeButton=nullptr, QToolButton *repeatingLockButton=nullptr) | |
| Constructor for CadConstraint.  More... | |
| bool | isLocked () const | 
| Is any kind of lock mode enabled.  More... | |
| bool | isRepeatingLock () const | 
Returns true if a repeating lock is set for the constraint.  More... | |
| QLineEdit * | lineEdit () const | 
| The line edit that manages the value of the constraint.  More... | |
| LockMode | lockMode () const | 
| The current lock mode of this constraint.  More... | |
| int | precision () const | 
| Returns the numeric precision (decimal places) to show in the associated widget.  More... | |
| bool | relative () const | 
| Is the constraint in relative mode.  More... | |
| void | setLockMode (LockMode mode) | 
| Set the lock mode.  More... | |
| void | setPrecision (int precision) | 
| Sets the numeric precision (decimal places) to show in the associated widget.  More... | |
| void | setRelative (bool relative) | 
| Set if the constraint should be treated relative.  More... | |
| void | setRepeatingLock (bool repeating) | 
| Sets whether a repeating lock is set for the constraint.  More... | |
| void | setValue (double value, bool updateWidget=true) | 
| Set the value of the constraint.  More... | |
| void | toggleLocked () | 
| Toggle lock mode.  More... | |
| void | toggleRelative () | 
| Toggle relative mode.  More... | |
| double | value () const | 
| The value of the constraint.  More... | |
The CadConstraint is an abstract class for all basic constraints (angle/distance/x/y). It contains all values (locked, value, relative) and pointers to corresponding widgets.
Definition at line 88 of file qgsadvanceddigitizingdockwidget.h.
The lock mode.
| Enumerator | |
|---|---|
| NoLock | |
| SoftLock | |
| HardLock | |
Definition at line 95 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
Constructor for CadConstraint.
| lineEdit | associated line edit for constraint value | 
| lockerButton | associated button for locking constraint | 
| relativeButton | optional button for toggling relative constraint mode | 
| repeatingLockButton | optional button for toggling repeating lock mode | 
Definition at line 109 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
Is any kind of lock mode enabled.
Definition at line 129 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
Returns true if a repeating lock is set for the constraint. 
Repeating locks are not automatically cleared after a new point is added.
Definition at line 137 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
The line edit that manages the value of the constraint.
Definition at line 152 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
The current lock mode of this constraint.
Definition at line 124 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
Returns the numeric precision (decimal places) to show in the associated widget.
Definition at line 196 of file qgsadvanceddigitizingdockwidget.h.
      
  | 
  inline | 
Is the constraint in relative mode.
Definition at line 142 of file qgsadvanceddigitizingdockwidget.h.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::setLockMode | ( | LockMode | mode | ) | 
Set the lock mode.
Definition at line 1754 of file qgsadvanceddigitizingdockwidget.cpp.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::setPrecision | ( | int | precision | ) | 
Sets the numeric precision (decimal places) to show in the associated widget.
Definition at line 1811 of file qgsadvanceddigitizingdockwidget.cpp.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::setRelative | ( | bool | relative | ) | 
Set if the constraint should be treated relative.
Definition at line 1785 of file qgsadvanceddigitizingdockwidget.cpp.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::setRepeatingLock | ( | bool | repeating | ) | 
Sets whether a repeating lock is set for the constraint.
Repeating locks are not automatically cleared after a new point is added.
| repeating | set to true to set the lock to repeat automatically  | 
Definition at line 1778 of file qgsadvanceddigitizingdockwidget.cpp.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::setValue | ( | double | value, | 
| bool | updateWidget = true  | 
        ||
| ) | 
Set the value of the constraint.
| value | new value for constraint | 
| updateWidget | set to false to prevent automatically updating the associated widget's value  | 
Definition at line 1794 of file qgsadvanceddigitizingdockwidget.cpp.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleLocked | ( | ) | 
Toggle lock mode.
Definition at line 1801 of file qgsadvanceddigitizingdockwidget.cpp.
| void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleRelative | ( | ) | 
Toggle relative mode.
Definition at line 1806 of file qgsadvanceddigitizingdockwidget.cpp.
      
  | 
  inline | 
The value of the constraint.
Definition at line 147 of file qgsadvanceddigitizingdockwidget.h.
 1.8.17