QGIS API Documentation
2.12.0-Lyon
|
The CadConstraint is an abstract class for all basic constraints (angle/distance/x/y). 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=0) | |
bool | isLocked () const |
Is any kind of lock mode enabled. 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... | |
bool | relative () const |
Is the constraint in relative mode. More... | |
void | setLockMode (LockMode mode) |
Set the lock mode. More... | |
void | setRelative (bool relative) |
Set if the constraint should be treated relative. More... | |
void | setValue (double value) |
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 79 of file qgsadvanceddigitizingdockwidget.h.
The lock mode.
Enumerator | |
---|---|
NoLock | |
SoftLock | |
HardLock |
Definition at line 85 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Definition at line 92 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Is any kind of lock mode enabled.
Definition at line 109 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
The line edit that manages the value of the constraint.
Definition at line 122 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
The current lock mode of this constraint.
Definition at line 105 of file qgsadvanceddigitizingdockwidget.h.
|
inline |
Is the constraint in relative mode.
Definition at line 113 of file qgsadvanceddigitizingdockwidget.h.
void QgsAdvancedDigitizingDockWidget::CadConstraint::setLockMode | ( | LockMode | mode | ) |
Set the lock mode.
Definition at line 1152 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::CadConstraint::setRelative | ( | bool | relative | ) |
Set if the constraint should be treated relative.
Definition at line 1163 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::CadConstraint::setValue | ( | double | value | ) |
Set the value of the constraint.
Definition at line 1172 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleLocked | ( | ) |
Toggle lock mode.
Definition at line 1178 of file qgsadvanceddigitizingdockwidget.cpp.
void QgsAdvancedDigitizingDockWidget::CadConstraint::toggleRelative | ( | ) |
Toggle relative mode.
Definition at line 1183 of file qgsadvanceddigitizingdockwidget.cpp.
|
inline |
The value of the constraint.
Definition at line 117 of file qgsadvanceddigitizingdockwidget.h.