AlignMapPointContext struct
Structure defining all constraints for alignMapPoint() method.
Contents
- Reference
Public functions
- void dump() const
- Dumps the context's properties, for debugging.
Public variables
-
QgsCadUtils::
AlignMapPointConstraint angleConstraint - Constraint for angle.
- QList<QgsPointXY> cadPointList
- List of recent CAD points in map coordinates.
-
QgsCadUtils::
AlignMapPointConstraint commonAngleConstraint - Constraint for soft lock to a common angle.
-
QgsCadUtils::
AlignMapPointConstraint distanceConstraint - Constraint for distance.
- double mapUnitsPerPixel
- Map units/pixel ratio from map canvas. Needed for.
- QgsSnappingUtils* snappingUtils
- Snapping utils that will be used to snap point to map. Must not be null.
-
QgsCadUtils::
AlignMapPointConstraint xConstraint - Constraint for X coordinate.
-
QgsCadUtils::
AlignMapPointConstraint yConstraint - Constraint for Y coordinate.
Function documentation
void QgsCadUtils:: AlignMapPointContext:: dump() const
Dumps the context's properties, for debugging.
Variable documentation
QList<QgsPointXY> QgsCadUtils:: AlignMapPointContext:: cadPointList
List of recent CAD points in map coordinates.
These are used to turn relative constraints to absolute. First point is the most recent point. Currently using only "previous" point (index 1) and "penultimate" point (index 2) for alignment purposes.