QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Functions
qgssnappingutils.cpp File Reference
#include "qgssnappingutils.h"
#include "qgsgeometry.h"
#include "qgsmaplayerregistry.h"
#include "qgsproject.h"
#include "qgsvectorlayer.h"
Include dependency graph for qgssnappingutils.cpp:

Go to the source code of this file.

Functions

QgsRectangle _areaOfInterest (const QgsPoint &point, double tolerance)
 
static QgsPointLocator::Match _findClosestSegmentIntersection (const QgsPoint &pt, const QgsPointLocator::MatchList &segments)
 
static void _replaceIfBetter (QgsPointLocator::Match &mBest, const QgsPointLocator::Match &mNew, double maxDistance)
 
static void _updateBestMatch (QgsPointLocator::Match &bestMatch, const QgsPoint &pointMap, QgsPointLocator *loc, int type, double tolerance, QgsPointLocator::MatchFilter *filter)
 

Function Documentation

◆ _areaOfInterest()

QgsRectangle _areaOfInterest ( const QgsPoint point,
double  tolerance 
)
inline

Definition at line 213 of file qgssnappingutils.cpp.

◆ _findClosestSegmentIntersection()

static QgsPointLocator::Match _findClosestSegmentIntersection ( const QgsPoint pt,
const QgsPointLocator::MatchList segments 
)
static

Definition at line 111 of file qgssnappingutils.cpp.

◆ _replaceIfBetter()

static void _replaceIfBetter ( QgsPointLocator::Match mBest,
const QgsPointLocator::Match mNew,
double  maxDistance 
)
static

Definition at line 177 of file qgssnappingutils.cpp.

◆ _updateBestMatch()

static void _updateBestMatch ( QgsPointLocator::Match bestMatch,
const QgsPoint pointMap,
QgsPointLocator loc,
int  type,
double  tolerance,
QgsPointLocator::MatchFilter filter 
)
static

Definition at line 195 of file qgssnappingutils.cpp.