QGIS API Documentation  3.0.2-Girona (307d082)
Public Member Functions | Public Attributes | List of all members
QgsCadUtils::AlignMapPointContext Struct Reference

Structure defining all constraints for alignMapPoint() method. More...

#include <qgscadutils.h>

Public Member Functions

void dump () const
 Dumps the context's properties, for debugging. More...
 

Public Attributes

QgsCadUtils::AlignMapPointConstraint angleConstraint
 Constraint for angle. More...
 
QList< QgsPointXYcadPointList
 List of recent CAD points in map coordinates. More...
 
QgsCadUtils::AlignMapPointConstraint commonAngleConstraint
 Constraint for soft lock to a common angle. More...
 
QgsCadUtils::AlignMapPointConstraint distanceConstraint
 Constraint for distance. More...
 
double mapUnitsPerPixel
 Map units/pixel ratio from map canvas. Needed for. More...
 
QgsSnappingUtilssnappingUtils = nullptr
 Snapping utils that will be used to snap point to map. Must not be null. More...
 
QgsCadUtils::AlignMapPointConstraint xConstraint
 Constraint for X coordinate. More...
 
QgsCadUtils::AlignMapPointConstraint yConstraint
 Constraint for Y coordinate. More...
 

Detailed Description

Structure defining all constraints for alignMapPoint() method.

Definition at line 54 of file qgscadutils.h.

Member Function Documentation

◆ dump()

void QgsCadUtils::AlignMapPointContext::dump ( ) const

Dumps the context's properties, for debugging.

Note
Not available in Python bindings.

Definition at line 311 of file qgscadutils.cpp.

Member Data Documentation

◆ angleConstraint

QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::angleConstraint

Constraint for angle.

Definition at line 68 of file qgscadutils.h.

◆ cadPointList

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.

Definition at line 77 of file qgscadutils.h.

◆ commonAngleConstraint

QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::commonAngleConstraint

Constraint for soft lock to a common angle.

Definition at line 70 of file qgscadutils.h.

◆ distanceConstraint

QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::distanceConstraint

Constraint for distance.

Definition at line 66 of file qgscadutils.h.

◆ mapUnitsPerPixel

double QgsCadUtils::AlignMapPointContext::mapUnitsPerPixel

Map units/pixel ratio from map canvas. Needed for.

Definition at line 59 of file qgscadutils.h.

◆ snappingUtils

QgsSnappingUtils* QgsCadUtils::AlignMapPointContext::snappingUtils = nullptr

Snapping utils that will be used to snap point to map. Must not be null.

Definition at line 57 of file qgscadutils.h.

◆ xConstraint

QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::xConstraint

Constraint for X coordinate.

Definition at line 62 of file qgscadutils.h.

◆ yConstraint

QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::yConstraint

Constraint for Y coordinate.

Definition at line 64 of file qgscadutils.h.


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