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