QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
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"
21
22class QgsMapCanvas;
23
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
An abstract base class which implements a locator filter populated from a QgsGeocoderInterface.
Interface for geocoders.
Definition qgsgeocoder.h:37
An adapter class which implements a locator filter populated from a QgsGeocoderInterface.
Represents a matching result from a geocoder search.
Abstract base class for filters which collect locator results.
Map canvas is a class for displaying all GIS data types on a canvas.
A rectangle specified with double values.
#define SIP_FACTORY
Definition qgis_sip.h:76