QGIS API Documentation
4.3.0-Master (0ad0cdb9438)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsmapcanvassnappingutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmapcanvassnappingutils.h
3
---------------------
4
begin : December 2014
5
copyright : (C) 2014 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
#ifndef QGSMAPCANVASSNAPPINGUTILS_H
16
#define QGSMAPCANVASSNAPPINGUTILS_H
17
18
#include "qgis_gui.h"
19
#include "
qgsmaptool.h
"
20
#include "
qgssnappingutils.h
"
21
22
class
QgsMapCanvas
;
23
24
class
QProgressDialog;
25
31
class
GUI_EXPORT
QgsMapCanvasSnappingUtils
:
public
QgsSnappingUtils
32
{
33
Q_OBJECT
34
public
:
42
QgsMapCanvasSnappingUtils
(
QgsMapCanvas
*canvas, QObject *parent =
nullptr
);
43
44
protected
:
45
void
prepareIndexStarting
(
int
count )
override
;
46
void
prepareIndexProgress
(
int
index )
override
;
47
48
private
slots:
49
void
canvasMapSettingsChanged();
50
void
canvasTransformContextChanged();
51
void
canvasCurrentLayerChanged();
52
void
canvasMapToolChanged();
53
54
private
:
55
QgsMapCanvas
*mCanvas =
nullptr
;
56
QProgressDialog *mProgress =
nullptr
;
57
};
58
59
60
#endif
// QGSMAPCANVASSNAPPINGUTILS_H
QgsMapCanvasSnappingUtils::QgsMapCanvasSnappingUtils
QgsMapCanvasSnappingUtils(QgsMapCanvas *canvas, QObject *parent=nullptr)
Construct map canvas snapping utils object.
Definition
qgsmapcanvassnappingutils.cpp:27
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsSnappingUtils::prepareIndexProgress
virtual void prepareIndexProgress(int index)
Called when finished indexing a layer with snapToMap. When index == count the indexing is complete.
Definition
qgssnappingutils.h:239
QgsSnappingUtils::QgsSnappingUtils
QgsSnappingUtils(QObject *parent=nullptr, bool enableSnappingForInvisibleFeature=true)
Constructor for QgsSnappingUtils.
Definition
qgssnappingutils.cpp:30
QgsSnappingUtils::prepareIndexStarting
virtual void prepareIndexStarting(int count)
Called when starting to index with snapToMap - can be overridden and e.g. progress dialog can be prov...
Definition
qgssnappingutils.h:237
qgsmaptool.h
qgssnappingutils.h
Generated on
for QGIS API Documentation by
1.17.0