QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
QgsLocatorContext Class Reference

Encapsulates the properties relating to the context of a locator search. More...

#include <qgslocatorcontext.h>

Public Member Functions

 QgsLocatorContext ()=default
 

Properties

QgsRectangle targetExtent
 Map extent to target in results.
 
QgsCoordinateReferenceSystem targetExtentCrs
 Coordinate reference system for the map extent variable.
 
QgsCoordinateTransformContext transformContext
 Coordinate transform context, to use whenever performing coordinate transformations inside a locator.
 
bool usingPrefix = false
 Will be true if search is being conducted using a filter prefix.
 

Detailed Description

Encapsulates the properties relating to the context of a locator search.

Definition at line 31 of file qgslocatorcontext.h.

Constructor & Destructor Documentation

◆ QgsLocatorContext()

QgsLocatorContext::QgsLocatorContext ( )
default

Property Documentation

◆ targetExtent

QgsRectangle QgsLocatorContext::targetExtent

Map extent to target in results.

This can be used to prioritize searching for results close to the current map extent. The CRS for the extent is specified by targetExtentCrs.

See also
targetExtentCrs

Definition at line 35 of file qgslocatorcontext.h.

◆ targetExtentCrs

QgsCoordinateReferenceSystem QgsLocatorContext::targetExtentCrs

Coordinate reference system for the map extent variable.

See also
targetExtent

Definition at line 36 of file qgslocatorcontext.h.

◆ transformContext

QgsCoordinateTransformContext QgsLocatorContext::transformContext

Coordinate transform context, to use whenever performing coordinate transformations inside a locator.

Since
QGIS 3.16

Definition at line 37 of file qgslocatorcontext.h.

◆ usingPrefix

bool QgsLocatorContext::usingPrefix = false

Will be true if search is being conducted using a filter prefix.

Definition at line 38 of file qgslocatorcontext.h.


The documentation for this class was generated from the following file: