QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
gui
qgsgeocoderlocatorfilter.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgeocoderlocatorfilter.h
3
---------------
4
Date : August 2020
5
Copyright : (C) 2020 by Nyall Dawson
6
Email : nyall dot dawson 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 QGSGEOCODERLOCATORFILTER_H
17
#define QGSGEOCODERLOCATORFILTER_H
18
19
#include "qgis_gui.h"
20
#include "
qgsabstractgeocoderlocatorfilter.h
"
21
22
class
QgsMapCanvas
;
23
34
class
GUI_EXPORT
QgsGeocoderLocatorFilter
:
public
QgsAbstractGeocoderLocatorFilter
35
{
36
37
Q_OBJECT
38
39
public
:
40
60
QgsGeocoderLocatorFilter
(
const
QString &name,
const
QString &displayName,
61
const
QString &prefix,
62
QgsGeocoderInterface
*geocoder,
63
QgsMapCanvas
*canvas,
64
const
QgsRectangle
&boundingBox =
QgsRectangle
() );
65
66
QgsLocatorFilter
*clone()
const
override
SIP_FACTORY
;
67
68
private
:
69
void
handleGeocodeResult(
const
QgsGeocoderResult
&result )
override
;
70
71
QgsMapCanvas
*mCanvas =
nullptr
;
72
73
};
74
75
#endif // QGSGEOCODERLOCATORFILTER_H
QgsLocatorFilter
Abstract base class for filters which collect locator results.
Definition:
qgslocatorfilter.h:152
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:89
QgsGeocoderLocatorFilter
An adapter class which implements a locator filter populated from a QgsGeocoderInterface.
Definition:
qgsgeocoderlocatorfilter.h:34
QgsRectangle
A rectangle specified with double values.
Definition:
qgsrectangle.h:41
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsAbstractGeocoderLocatorFilter
An abstract base class which implements a locator filter populated from a QgsGeocoderInterface.
Definition:
qgsabstractgeocoderlocatorfilter.h:39
QgsGeocoderResult
Represents a matching result from a geocoder search.
Definition:
qgsgeocoderresult.h:40
qgsabstractgeocoderlocatorfilter.h
QgsGeocoderInterface
Interface for geocoders.
Definition:
qgsgeocoder.h:36
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17