20 #include "qgis_core.h" 41 , relative( relative )
111 #endif // QGSCADUTILS_H
QgsCadUtils::AlignMapPointConstraint yConstraint
Constraint for Y coordinate.
Structure with details of one constraint.
A class to represent a 2D point.
int softLockCommonAngle
Angle (in degrees) to which we have soft-locked ourselves (if not set it is -1)
QgsPointLocator::Match edgeMatch
Snapped segment - only valid if actually used for something.
bool locked
Whether the constraint is active, i.e. should be considered.
QgsCadUtils::AlignMapPointConstraint distanceConstraint
Constraint for distance.
Structure defining all constraints for alignMapPoint() method.
AlignMapPointConstraint(bool locked=false, bool relative=false, double value=0)
QgsCadUtils::AlignMapPointConstraint commonAngleConstraint
Constraint for soft lock to a common angle.
QgsPointXY finalMapPoint
map point aligned according to the constraints
double value
Numeric value of the constraint (coordinate/distance in map units or angle in degrees) ...
Structure returned from alignMapPoint() method.
double mapUnitsPerPixel
Map units/pixel ratio from map canvas. Needed for.
QgsCadUtils::AlignMapPointConstraint xConstraint
Constraint for X coordinate.
QgsCadUtils::AlignMapPointConstraint angleConstraint
Constraint for angle.
bool valid
Whether the combination of constraints is actually valid.
This class has all the configuration of snapping and can return answers to snapping queries...
bool relative
Whether the value is relative to previous value.
The QgsCadUtils class provides routines for CAD editing.
QList< QgsPointXY > cadPointList
List of recent CAD points in map coordinates.