QGIS API Documentation 3.27.0-Master (1c05421486)
Public Member Functions | List of all members
QgsSelectionContext Class Reference

Encapsulates the context of a layer selection operation. More...

#include <qgsselectioncontext.h>

Public Member Functions

double scale () const
 Returns the map scale at which the selection should occur. More...
 
void setScale (double scale)
 Sets the map scale at which the selection should occur. More...
 

Detailed Description

Encapsulates the context of a layer selection operation.

Since
QGIS 3.28

Definition at line 29 of file qgsselectioncontext.h.

Member Function Documentation

◆ scale()

double QgsSelectionContext::scale ( ) const

Returns the map scale at which the selection should occur.

The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

See also
setScale()

Definition at line 24 of file qgsselectioncontext.cpp.

◆ setScale()

void QgsSelectionContext::setScale ( double  scale)

Sets the map scale at which the selection should occur.

The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

See also
scale()

Definition at line 19 of file qgsselectioncontext.cpp.


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