QGIS API Documentation  2.12.0-Lyon
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.


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

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

Definition at line 108 of file qgssnappingutils.cpp.

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

Definition at line 174 of file qgssnappingutils.cpp.

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

Definition at line 192 of file qgssnappingutils.cpp.