This commit is contained in:
Julien Cabieces 2019-10-24 11:04:31 +02:00
parent 7fd98e8782
commit f03da03d33
2 changed files with 6 additions and 6 deletions

View File

@ -58,16 +58,16 @@ Snap to map according to the current configuration.
:param point: point in canvas coordinates
:param filter: allows discarding unwanted matches.
This method is either blocking or non blocking according to ``relaxed`` parameter passed
:param relaxed: ``True`` if this method is non blocking and the matching result can be invalid while indexing
%End
QgsPointLocator::Match snapToMap( const QgsPointXY &pointMap, QgsPointLocator::MatchFilter *filter = 0, bool relaxed = false );
%Docstring
Snap to map according to the current configuration.
:param point: point in canvas coordinates
:param pointMap: point in map coordinates
:param filter: allows discarding unwanted matches.
This method is either blocking or non blocking according to ``relaxed`` parameter passed
:param relaxed: ``True`` if this method is non blocking and the matching result can be invalid while indexing
%End
QgsPointLocator::Match snapToCurrentLayer( QPoint point, QgsPointLocator::Types type, QgsPointLocator::MatchFilter *filter = 0 );

View File

@ -72,15 +72,15 @@ class CORE_EXPORT QgsSnappingUtils : public QObject
* Snap to map according to the current configuration.
* \param point point in canvas coordinates
* \param filter allows discarding unwanted matches.
* This method is either blocking or non blocking according to \a relaxed parameter passed
* \param relaxed TRUE if this method is non blocking and the matching result can be invalid while indexing
*/
QgsPointLocator::Match snapToMap( QPoint point, QgsPointLocator::MatchFilter *filter = nullptr, bool relaxed = false );
/**
* Snap to map according to the current configuration.
* \param point point in canvas coordinates
* \param pointMap point in map coordinates
* \param filter allows discarding unwanted matches.
* This method is either blocking or non blocking according to \a relaxed parameter passed
* \param relaxed TRUE if this method is non blocking and the matching result can be invalid while indexing
*/
QgsPointLocator::Match snapToMap( const QgsPointXY &pointMap, QgsPointLocator::MatchFilter *filter = nullptr, bool relaxed = false );