QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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). More... | |
QList< QgsPoint > | cadPoints () const |
Returns the list of recent CAD points in map coordinates. More... | |
void | dump () const |
Dumps the context's properties, for debugging. More... | |
QQueue< QgsPointLocator::Match > | lockedSnapVertices () const |
Returns the queue of point locator matches that contain the locked vertices. More... | |
void | setCadPoint (int index, const QgsPoint &point) |
Sets the recent CAD point at the specified index to point (in map coordinates). More... | |
void | setCadPoints (const QList< QgsPoint > &points) |
Sets the list of recent CAD points (in map coordinates). More... | |
void | setLockedSnapVertices (const QQueue< QgsPointLocator::Match > &lockedSnapVertices) |
Sets the queue of locked vertices. More... | |
Public Attributes | |
QgsCadUtils::AlignMapPointConstraint | angleConstraint |
Constraint for angle. More... | |
QgsCadUtils::AlignMapPointConstraint | commonAngleConstraint |
Constraint for soft lock to a common angle. More... | |
QgsCadUtils::AlignMapPointConstraint | distanceConstraint |
Constraint for distance. More... | |
QgsCadUtils::AlignMapPointConstraint | lineExtensionConstraint |
double | mapUnitsPerPixel |
Map units/pixel ratio from map canvas. More... | |
QgsCadUtils::AlignMapPointConstraint | mConstraint |
Constraint for M coordinate. More... | |
QgsSnappingUtils * | snappingUtils = nullptr |
Snapping utils that will be used to snap point to map. Must not be nullptr . More... | |
QgsCadUtils::AlignMapPointConstraint | xConstraint |
Constraint for X coordinate. More... | |
QgsCadUtils::AlignMapPointConstraint | xyVertexConstraint |
QgsCadUtils::AlignMapPointConstraint | yConstraint |
Constraint for Y coordinate. More... | |
QgsCadUtils::AlignMapPointConstraint | zConstraint |
Constraint for Z coordinate. More... | |
Defines constraints for the QgsCadUtils::alignMapPoint() method.
Definition at line 103 of file qgscadutils.h.
|
inline |
Returns the recent CAD point at the specified index (in map coordinates).
Definition at line 176 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 152 of file qgscadutils.h.
void QgsCadUtils::AlignMapPointContext::dump | ( | ) | const |
Dumps the context's properties, for debugging.
Definition at line 501 of file qgscadutils.cpp.
|
inline |
Returns the queue of point locator matches that contain the locked vertices.
Definition at line 194 of file qgscadutils.h.
|
inline |
Sets the recent CAD point at the specified index to point (in map coordinates).
Definition at line 168 of file qgscadutils.h.
|
inline |
Sets the list of recent CAD points (in map coordinates).
Definition at line 160 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 186 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::angleConstraint |
Constraint for angle.
Definition at line 130 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::commonAngleConstraint |
Constraint for soft lock to a common angle.
Definition at line 132 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::distanceConstraint |
Constraint for distance.
Definition at line 128 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::lineExtensionConstraint |
Definition at line 134 of file qgscadutils.h.
double QgsCadUtils::AlignMapPointContext::mapUnitsPerPixel |
Map units/pixel ratio from map canvas.
Definition at line 109 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::mConstraint |
QgsSnappingUtils* QgsCadUtils::AlignMapPointContext::snappingUtils = nullptr |
Snapping utils that will be used to snap point to map. Must not be nullptr
.
Definition at line 107 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::xConstraint |
Constraint for X coordinate.
Definition at line 112 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::xyVertexConstraint |
Definition at line 135 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::yConstraint |
Constraint for Y coordinate.
Definition at line 114 of file qgscadutils.h.
QgsCadUtils::AlignMapPointConstraint QgsCadUtils::AlignMapPointContext::zConstraint |