The CadConstraint is an abstract class for all basic constraints (angle/distance/x/y).
More...
#include <qgsadvanceddigitizingdockwidget.h>
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.
- Note
- Relative is not mandatory since it is not used for distance.
Definition at line 88 of file qgsadvanceddigitizingdockwidget.h.
◆ LockMode
◆ CadConstraint()
QgsAdvancedDigitizingDockWidget::CadConstraint::CadConstraint |
( |
QLineEdit * |
lineEdit, |
|
|
QToolButton * |
lockerButton, |
|
|
QToolButton * |
relativeButton = nullptr , |
|
|
QToolButton * |
repeatingLockButton = nullptr |
|
) |
| |
|
inline |
Constructor for CadConstraint.
- Parameters
-
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.
◆ isLocked()
bool QgsAdvancedDigitizingDockWidget::CadConstraint::isLocked |
( |
| ) |
const |
|
inline |
◆ isRepeatingLock()
bool QgsAdvancedDigitizingDockWidget::CadConstraint::isRepeatingLock |
( |
| ) |
const |
|
inline |
◆ lineEdit()
QLineEdit * QgsAdvancedDigitizingDockWidget::CadConstraint::lineEdit |
( |
| ) |
const |
|
inline |
◆ lockMode()
LockMode QgsAdvancedDigitizingDockWidget::CadConstraint::lockMode |
( |
| ) |
const |
|
inline |
◆ precision()
int QgsAdvancedDigitizingDockWidget::CadConstraint::precision |
( |
| ) |
const |
|
inline |
◆ relative()
bool QgsAdvancedDigitizingDockWidget::CadConstraint::relative |
( |
| ) |
const |
|
inline |
◆ setLockMode()
void QgsAdvancedDigitizingDockWidget::CadConstraint::setLockMode |
( |
LockMode |
mode | ) |
|
◆ setPrecision()
void QgsAdvancedDigitizingDockWidget::CadConstraint::setPrecision |
( |
int |
precision | ) |
|
◆ setRelative()
void QgsAdvancedDigitizingDockWidget::CadConstraint::setRelative |
( |
bool |
relative | ) |
|
◆ setRepeatingLock()
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.
- Parameters
-
repeating | set to true to set the lock to repeat automatically |
- See also
- isRepeatingLock()
- Since
- QGIS 2.16
Definition at line 1778 of file qgsadvanceddigitizingdockwidget.cpp.
◆ setValue()
void QgsAdvancedDigitizingDockWidget::CadConstraint::setValue |
( |
double |
value, |
|
|
bool |
updateWidget = true |
|
) |
| |
Set the value of the constraint.
- Parameters
-
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.
◆ toggleLocked()
void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleLocked |
( |
| ) |
|
◆ toggleRelative()
void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleRelative |
( |
| ) |
|
◆ value()
double QgsAdvancedDigitizingDockWidget::CadConstraint::value |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: