QGIS API Documentation  3.8.0-Zanzibar (11aff65)
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

struct  AlignMapPointConstraint
 Structure with details of one constraint. More...
 
struct  AlignMapPointContext
 Structure defining all constraints for alignMapPoint() method. More...
 
struct  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: