QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
Classes | Static Public Member Functions | List of all members
QgsCadUtils Class Reference

The QgsCadUtils class provides routines for CAD editing. More...

#include <qgscadutils.h>

Classes

class  AlignMapPointConstraint
 Structure with details of one constraint. More...
 
class  AlignMapPointContext
 Defines constraints for the QgsCadUtils::alignMapPoint() method. More...
 
class  AlignMapPointOutput
 Structure returned from alignMapPoint() method. More...
 

Static Public Member Functions

static QgsCadUtils::AlignMapPointOutput alignMapPoint (const QgsPointXY &originalMapPoint, const QgsCadUtils::AlignMapPointContext &ctx)
 Applies X/Y/angle/distance constraints from the given context to a map point. More...
 

Detailed Description

The QgsCadUtils class provides routines for CAD editing.

Since
QGIS 3.0

Definition at line 32 of file qgscadutils.h.

Member Function Documentation

◆ alignMapPoint()

QgsCadUtils::AlignMapPointOutput QgsCadUtils::alignMapPoint ( const QgsPointXY originalMapPoint,
const QgsCadUtils::AlignMapPointContext ctx 
)
static

Applies X/Y/angle/distance constraints from the given context to a map point.

Returns a structure containing aligned map point, whether the constraints are valid and some extra information.

Definition at line 37 of file qgscadutils.cpp.


The documentation for this class was generated from the following files: