|
| QgsAdvancedDigitizingDockWidget (QgsMapCanvas *canvas, QWidget *parent=nullptr) |
| Create an advanced digitizing dock widget. More...
|
|
void | addPoint (const QgsPointXY &point) |
| Adds point to the CAD point list. More...
|
|
bool | alignToSegment (QgsMapMouseEvent *e, QgsAdvancedDigitizingDockWidget::CadConstraint::LockMode lockMode=QgsAdvancedDigitizingDockWidget::CadConstraint::HardLock) |
| align to segment for between line constraint. More...
|
|
bool | applyConstraints (QgsMapMouseEvent *e) |
| apply the CAD constraints. More...
|
|
Qgis::BetweenLineConstraint | betweenLineConstraint () const |
| Returns the between line constraints which are used to place perpendicular/parallel segments to snapped segments on the canvas. More...
|
|
bool | cadEnabled () const |
| determines if CAD tools are enabled or if map tools behaves "nomally" More...
|
|
bool | canvasKeyPressEventFilter (QKeyEvent *e) |
| Filter key events to e.g. More...
|
|
CadCapacities | capacities () const |
| Returns the capacities. More...
|
|
void | clear () |
| Clear any cached previous clicks and helper lines. More...
|
|
void | clearLockedSnapVertices (bool force=true) |
| Removes all points from the locked snap vertex list. More...
|
|
void | clearPoints () |
| Removes all points from the CAD point list. More...
|
|
bool | commonAngleConstraint () const |
| Returns true if a constraint on a common angle is active. More...
|
|
const CadConstraint * | constraintAngle () const |
| Returns the CadConstraint on the angle. More...
|
|
const CadConstraint * | constraintDistance () const |
| Returns the CadConstraint on the distance. More...
|
|
const CadConstraint * | constraintLineExtension () const |
| Returns the CadConstraint. More...
|
|
const CadConstraint * | constraintM () const |
| Returns the CadConstraint on the M coordinate. More...
|
|
const CadConstraint * | constraintX () const |
| Returns the CadConstraint on the X coordinate. More...
|
|
const CadConstraint * | constraintXyVertex () const |
| Returns the CadConstraint. More...
|
|
const CadConstraint * | constraintY () const |
| Returns the CadConstraint on the Y coordinate. More...
|
|
const CadConstraint * | constraintZ () const |
| Returns the CadConstraint on the Z coordinate. More...
|
|
bool | constructionMode () const |
| construction mode is used to draw intermediate points. These points won't be given any further (i.e. to the map tools) More...
|
|
Q_DECL_DEPRECATED QgsPointXY | currentPoint (bool *exists=nullptr) const |
| The last point. More...
|
|
QgsPoint | currentPointLayerCoordinates (QgsMapLayer *layer) const |
| Returns the last CAD point, in a map layer's coordinates. More...
|
|
QgsPoint | currentPointV2 (bool *exists=nullptr) const |
| The last point. More...
|
|
void | disable () |
| Disable the widget. More...
|
|
void | enable () |
| Enables the tool (call this when an appropriate map tool is set and in the condition to make use of cad digitizing) Normally done automatically from QgsMapToolAdvancedDigitizing::activate() but may need to be fine tuned if the map tool depends on preconditions like a feature selection. More...
|
|
QAction * | enableAction () |
| Returns the action used to enable/disable the tools. More...
|
|
double | getLineM () const |
| Convenient method to get the M value from the line edit wiget. More...
|
|
double | getLineZ () const |
| Convenient method to get the Z value from the line edit wiget. More...
|
|
void | keyPressEvent (QKeyEvent *e) override |
|
Qgis::LineExtensionSide | lineExtensionSide () const |
| Returns on which side of the constraint line extension point, the line was created. More...
|
|
QList< QgsPointLocator::Match > | lockedSnapVertices () const |
| Returns the snap matches whose vertices have been locked. More...
|
|
QgsPointLocator::Match | mapPointMatch () const |
| Returns the point locator match. More...
|
|
Q_DECL_DEPRECATED QgsPointXY | penultimatePoint (bool *exists=nullptr) const |
| The penultimate point. More...
|
|
QgsPoint | penultimatePointV2 (bool *exists=nullptr) const |
| The penultimate point. More...
|
|
int | pointsCount () const |
| The number of points in the CAD point helper list. More...
|
|
Q_DECL_DEPRECATED QgsPointXY | previousPoint (bool *exists=nullptr) const |
| The previous point. More...
|
|
QgsPoint | previousPointV2 (bool *exists=nullptr) const |
| The previous point. More...
|
|
void | releaseLocks (bool releaseRepeatingLocks=true) |
| unlock all constraints More...
|
|
void | removePreviousPoint () |
| Remove previous point in the CAD point list. More...
|
|
void | setAngle (const QString &value, WidgetSetMode mode) |
| Set the angle value on the widget. More...
|
|
void | setDistance (const QString &value, WidgetSetMode mode) |
| Set the distance value on the widget. More...
|
|
void | setEnabledM (bool enable) |
| Sets whether M is enabled. More...
|
|
void | setEnabledZ (bool enable) |
| Sets whether Z is enabled. More...
|
|
void | setM (const QString &value, WidgetSetMode mode) |
| Set the M value on the widget. More...
|
|
void | setPoints (const QList< QgsPointXY > &points) |
| Configures list of current CAD points. More...
|
|
void | setX (const QString &value, WidgetSetMode mode) |
| Set the X value on the widget. More...
|
|
void | setY (const QString &value, WidgetSetMode mode) |
| Set the Y value on the widget. More...
|
|
void | setZ (const QString &value, WidgetSetMode mode) |
| Set the Z value on the widget. More...
|
|
QList< QgsPointXY > | snappedSegment () const |
| Snapped to a segment. More...
|
|
bool | snappedToVertex () const |
| Is it snapped to a vertex. More...
|
|
double | softLockX () const |
| Returns the X value of the X soft lock. The value is NaN is the constraint isn't magnetized to a line. More...
|
|
double | softLockY () const |
| Returns the Y value of the Y soft lock. The value is NaN is the constraint isn't magnetized to a line. More...
|
|
void | switchZM () |
| Determines if Z or M will be enabled. More...
|
|
void | updateCadPaintItem () |
| Updates canvas item that displays constraints on the ma. More...
|
|
| QgsDockWidget (const QString &title, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) |
| Constructor for QgsDockWidget. More...
|
|
| QgsDockWidget (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) |
| Constructor for QgsDockWidget. More...
|
|
bool | isUserVisible () const |
| Returns true if the dock is both opened and raised to the front (ie not hidden by any other tabs. More...
|
|
void | setToggleVisibilityAction (QAction *action) |
| Links an action to the dock, so that toggling the action will automatically set the dock's visibility to suit (and changing the dock visibility will update the action's state). More...
|
|
QAction * | toggleVisibilityAction () |
| Returns the action linked to the dock. More...
|
|