QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
locator
qgslocatorcontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslocatorcontext.h
3
------------------
4
begin : May 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSLOCATORCONTEXT_H
19
#define QGSLOCATORCONTEXT_H
20
21
#include "qgis_core.h"
22
#include "
qgscoordinatereferencesystem.h
"
23
#include "
qgscoordinatetransformcontext.h
"
24
#include "
qgsrectangle.h
"
25
31
class
CORE_EXPORT
QgsLocatorContext
32
{
33
Q_GADGET
34
35
Q_PROPERTY(
QgsRectangle
targetExtent
MEMBER
targetExtent
)
36
Q_PROPERTY(
QgsCoordinateReferenceSystem
targetExtentCrs
MEMBER
targetExtentCrs
)
37
Q_PROPERTY(
QgsCoordinateTransformContext
transformContext
MEMBER
transformContext
)
38
Q_PROPERTY(
bool
usingPrefix
MEMBER
usingPrefix
)
39
40
public:
41
QgsLocatorContext
() = default;
42
49
QgsRectangle
targetExtent
;
50
55
QgsCoordinateReferenceSystem
targetExtentCrs
;
56
63
QgsCoordinateTransformContext
transformContext
;
64
68
bool
usingPrefix
= false;
69
};
70
71
#endif
// QGSLOCATORCONTEXT_H
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:216
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition
qgscoordinatetransformcontext.h:61
QgsLocatorContext::transformContext
QgsCoordinateTransformContext transformContext
Coordinate transform context, to use whenever performing coordinate transformations inside a locator.
Definition
qgslocatorcontext.h:37
QgsLocatorContext::QgsLocatorContext
QgsLocatorContext()=default
QgsLocatorContext::targetExtentCrs
QgsCoordinateReferenceSystem targetExtentCrs
Coordinate reference system for the map extent variable.
Definition
qgslocatorcontext.h:36
QgsLocatorContext::usingPrefix
bool usingPrefix
Will be true if search is being conducted using a filter prefix.
Definition
qgslocatorcontext.h:38
QgsLocatorContext::targetExtent
QgsRectangle targetExtent
Map extent to target in results.
Definition
qgslocatorcontext.h:35
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
qgscoordinatereferencesystem.h
qgscoordinatetransformcontext.h
qgsrectangle.h
Generated on
for QGIS API Documentation by
1.17.0