QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
gui
qgssnapindicator.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssnapindicator.h
3
--------------------------------------
4
Date : October 2017
5
Copyright : (C) 2017 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 QGSSNAPINDICATOR_H
17
#define QGSSNAPINDICATOR_H
18
19
#include "
qgspointlocator.h
"
20
#include "
qobjectuniqueptr.h
"
21
#include "qgis_gui.h"
22
23
class
QgsMapCanvas
;
24
class
QgsVertexMarker
;
25
26
32
class
GUI_EXPORT
QgsSnapIndicator
33
{
34
public
:
36
QgsSnapIndicator
(
QgsMapCanvas
*canvas );
37
~
QgsSnapIndicator
();
38
40
void
setMatch(
const
QgsPointLocator::Match
&match );
42
QgsPointLocator::Match
match
()
const
{
return
mMatch; }
43
45
void
setVisible(
bool
visible =
true
);
47
bool
isVisible()
const
;
48
49
private
:
50
Q_DISABLE_COPY(
QgsSnapIndicator
)
51
52
#ifdef SIP_RUN
53
QgsSnapIndicator
(
const
QgsSnapIndicator
&rh );
54
QgsSnapIndicator
&operator=(
const
QgsSnapIndicator
& );
55
#endif
56
57
QgsMapCanvas
*mCanvas =
nullptr
;
58
QgsPointLocator::Match
mMatch;
59
QObjectParentUniquePtr< QgsVertexMarker >
mSnappingMarker;
60
};
61
62
#endif // QGSSNAPINDICATOR_H
QgsSnapIndicator::match
QgsPointLocator::Match match() const
Returns currently displayed snapping match.
Definition:
qgssnapindicator.h:42
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:89
QgsSnapIndicator
Class that shows snapping marker on map canvas for the current snapping match.
Definition:
qgssnapindicator.h:32
QgsVertexMarker
A class for marking vertices of features using e.g. circles or 'x'.
Definition:
qgsvertexmarker.h:36
QObjectParentUniquePtr< QgsVertexMarker >
qobjectuniqueptr.h
QgsPointLocator::Match
Definition:
qgspointlocator.h:187
qgspointlocator.h
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17