QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
22 #include "qgis_core.h"
52 , relative( relative )
152 QList< QgsPoint >
cadPoints()
const {
return mCadPointList; } ;
160 void setCadPoints(
const QList< QgsPoint > &points ) { mCadPointList = points; };
198 SIP_PROPERTY( name = cadPointList, get = _cadPointList, set = _setCadPointList )
200 void _setCadPointList(
const QList< QgsPointXY > &list ) { mCadPointList.clear();
for (
const auto &pointxy : list ) { mCadPointList.append(
QgsPoint( pointxy ) );} }
202 QList< QgsPointXY > _cadPointList()
const { QList< QgsPointXY> list;
for (
const auto &point : mCadPointList ) { list.append(
QgsPointXY( point.x(), point.y() ) ); };
return list; }
212 QList<QgsPoint> mCadPointList;
213 QQueue< QgsPointLocator::Match > mLockedSnapVertices;
226 #endif // QGSCADUTILS_H
QList< QgsPoint > cadPoints() const
Returns the list of recent CAD points in map coordinates.
QgsCadUtils::AlignMapPointConstraint xyVertexConstraint
QQueue< QgsPointLocator::Match > lockedSnapVertices() const
Returns the queue of point locator matches that contain the locked vertices.
Point geometry type, with support for z-dimension and m-values.
QgsPointLocator::Match edgeMatch
Snapped segment - only valid if actually used for something.
QgsCadUtils::AlignMapPointConstraint commonAngleConstraint
Constraint for soft lock to a common angle.
The QgsCadUtils class provides routines for CAD editing.
QgsCadUtils::AlignMapPointConstraint xConstraint
Constraint for X coordinate.
QgsCadUtils::AlignMapPointConstraint lineExtensionConstraint
Structure with details of one constraint.
bool locked
Whether the constraint is active, i.e. should be considered.
LineExtensionSide
Designates whether the line extension constraint is currently soft locked with the previous or next v...
QgsPointXY finalMapPoint
map point aligned according to the constraints
QgsPointLocator::Match snapMatch
Snapped point - only valid if actually used for something.
AlignMapPointConstraint(bool locked=false, bool relative=false, double value=0)
Constructor for AlignMapPointConstraint.
void setLockedSnapVertices(const QQueue< QgsPointLocator::Match > &lockedSnapVertices)
Sets the queue of locked vertices.
double value
Numeric value of the constraint (coordinate/distance in map units or angle in degrees)
QgsCadUtils::AlignMapPointConstraint distanceConstraint
Constraint for distance.
double mapUnitsPerPixel
Map units/pixel ratio from map canvas.
This class has all the configuration of snapping and can return answers to snapping queries.
Qgis::LineExtensionSide softLockLineExtension
Defines constraints for the QgsCadUtils::alignMapPoint() method.
A class to represent a 2D point.
double softLockCommonAngle
Angle (in degrees) to which we have soft-locked ourselves (if not set it is -1)
bool valid
Whether the combination of constraints is actually valid.
void setCadPoints(const QList< QgsPoint > &points)
Sets the list of recent CAD points (in map coordinates).
void setCadPoint(int index, const QgsPoint &point)
Sets the recent CAD point at the specified index to point (in map coordinates).
#define SIP_PROPERTY(name, getter, setter)
QgsCadUtils::AlignMapPointConstraint mConstraint
Constraint for M coordinate.
QgsCadUtils::AlignMapPointConstraint zConstraint
Constraint for Z coordinate.
QgsCadUtils::AlignMapPointConstraint yConstraint
Constraint for Y coordinate.
Structure returned from alignMapPoint() method.
bool relative
Whether the value is relative to previous value.
QgsPoint cadPoint(int index) const
Returns the recent CAD point at the specified index (in map coordinates).
QgsCadUtils::AlignMapPointConstraint angleConstraint
Constraint for angle.