QGIS API Documentation  3.6.0-Noosa (5873452)
qgsgeometrysnappersinglesource.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsgeometrysnappersinglesource.h
3  ---------------------
4  Date : May 2018
5  Copyright : (C) 2018 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSGEOMETRYSNAPPERSINGLESOURCE_H
17 #define QGSGEOMETRYSNAPPERSINGLESOURCE_H
18 
19 #include "qgis_analysis.h"
20 
21 class QgsFeatureSink;
22 class QgsFeatureSource;
23 class QgsFeedback;
24 
43 class ANALYSIS_EXPORT QgsGeometrySnapperSingleSource
44 {
45  public:
46 
51  static int run( const QgsFeatureSource &source, QgsFeatureSink &sink, double thresh, QgsFeedback *feedback );
52 };
53 
54 #endif // QGSGEOMETRYSNAPPERSINGLESOURCE_H
An interface for objects which accept features via addFeature(s) methods.
Base class for feedback objects to be used for cancelation of something running in a worker thread...
Definition: qgsfeedback.h:44
Makes sure that any two vertices of the vector layer are at least at distance given by the threshold ...
An interface for objects which provide features via a getFeatures method.