16 #ifndef QGSSNAPPINGUTILS_H
17 #define QGSSNAPPINGUTILS_H
114 void setLayers(
const QList<LayerConfig>& layers ) { mLayers = layers; }
116 QList<LayerConfig>
layers()
const {
return mLayers; }
125 void readConfigFromProject();
134 void onLayersWillBeRemoved( QStringList layerIds );
141 void clearAllLocators();
151 void prepareIndex(
const QList<QgsVectorLayer*>& layers );
159 SnapToMapMode mSnapToMapMode;
160 IndexingStrategy mStrategy;
162 double mDefaultTolerance;
164 QList<LayerConfig> mLayers;
165 bool mSnapOnIntersection;
168 typedef QMap<QgsVectorLayer*, QgsPointLocator*> LocatorsMap;
170 LocatorsMap mLocators;
172 LocatorsMap mTemporaryLocators;
174 QSet<QString> mHybridNonindexableLayers;
178 #endif // QGSSNAPPINGUTILS_H