QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Defines constraints for the QgsCadUtils::alignMapPoint() method. More...
#include <qgscadutils.h>
Public Member Functions | |
QgsPoint | cadPoint (int index) const |
Returns the recent CAD point at the specified index (in map coordinates). | |
QList< QgsPoint > | cadPoints () const |
Returns the list of recent CAD points in map coordinates. | |
void | dump () const |
Dumps the context's properties, for debugging. | |
QQueue< QgsPointLocator::Match > | lockedSnapVertices () const |
Returns the queue of point locator matches that contain the locked vertices. | |
void | setCadPoint (int index, const QgsPoint &point) |
Sets the recent CAD point at the specified index to point (in map coordinates). | |
void | setCadPoints (const QList< QgsPoint > &points) |
Sets the list of recent CAD points (in map coordinates). | |
void | setLockedSnapVertices (const QQueue< QgsPointLocator::Match > &lockedSnapVertices) |
Sets the queue of locked vertices. | |
Defines constraints for the QgsCadUtils::alignMapPoint() method.
Definition at line 99 of file qgscadutils.h.
|
inline |
Returns the recent CAD point at the specified index (in map coordinates).
Definition at line 178 of file qgscadutils.h.
|
inline |
Returns the list of recent CAD points in map coordinates.
These are used to turn relative constraints to absolute. The first point is the most recent point.
Definition at line 154 of file qgscadutils.h.
void QgsCadUtils::AlignMapPointContext::dump | ( | ) | const |
Dumps the context's properties, for debugging.
Definition at line 513 of file qgscadutils.cpp.
|
inline |
Returns the queue of point locator matches that contain the locked vertices.
Definition at line 196 of file qgscadutils.h.
|
inline |
Sets the recent CAD point at the specified index to point (in map coordinates).
Definition at line 170 of file qgscadutils.h.
|
inline |
Sets the list of recent CAD points (in map coordinates).
Definition at line 162 of file qgscadutils.h.
|
inline |
Sets the queue of locked vertices.
Point locator matches are stored instead of vertices to keep more context.
Definition at line 188 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::angleConstraint |
Constraint for angle.
Definition at line 126 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::commonAngleConstraint |
Constraint for soft lock to a common angle.
Definition at line 128 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::distanceConstraint |
Constraint for distance.
Definition at line 124 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::lineExtensionConstraint |
Definition at line 130 of file qgscadutils.h.
double QgsCadUtils::AlignMapPointContext::mapUnitsPerPixel |
Map units/pixel ratio from map canvas.
Definition at line 105 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::mConstraint |
bool QgsCadUtils::AlignMapPointContext::snappingToFeaturesOverridesCommonAngle = false |
Flag to set snapping to features priority over common angle.
Definition at line 137 of file qgscadutils.h.
QgsSnappingUtils* QgsCadUtils::AlignMapPointContext::snappingUtils = nullptr |
Snapping utils that will be used to snap point to map. Must not be nullptr
.
Definition at line 103 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::xConstraint |
Constraint for X coordinate.
Definition at line 108 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::xyVertexConstraint |
Definition at line 131 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::yConstraint |
Constraint for Y coordinate.
Definition at line 110 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::zConstraint |