QgsCadUtils class

The QgsCadUtils class provides routines for CAD editing.

Public types

struct AlignMapPointConstraint
Structure with details of one constraint.
struct AlignMapPointContext
Structure defining all constraints for alignMapPoint() method.
struct AlignMapPointOutput
Structure returned from alignMapPoint() method.

Public static functions

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

Function documentation

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

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.