QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
This is the class is providing tolerance value in map unit values. More...
#include <qgstolerance.h>
Static Public Member Functions | |
static double | defaultTolerance (QgsMapLayer *layer, const QgsMapSettings &mapSettings) |
Static function to get default tolerance value for a layer. | |
static double | toleranceInMapUnits (double tolerance, QgsMapLayer *layer, const QgsMapSettings &mapSettings, Qgis::MapToolUnit units=Qgis::MapToolUnit::Layer) |
Static function to translate tolerance value into layer units. | |
static double | toleranceInProjectUnits (double tolerance, QgsMapLayer *layer, const QgsMapSettings &mapSettings, Qgis::MapToolUnit units) |
Static function to translate tolerance value into map units. | |
static double | vertexSearchRadius (const QgsMapSettings &mapSettings) |
Static function to get vertex tolerance value. | |
static double | vertexSearchRadius (QgsMapLayer *layer, const QgsMapSettings &mapSettings) |
Static function to get vertex tolerance value for a layer. | |
This is the class is providing tolerance value in map unit values.
Definition at line 32 of file qgstolerance.h.
|
static |
Static function to get default tolerance value for a layer.
The value is read from settings and transformed if necessary.
Definition at line 92 of file qgstolerance.cpp.
|
static |
Static function to translate tolerance value into layer units.
tolerance | tolerance value to be translated |
layer | reference layer |
mapSettings | settings of the map |
units | type of units to be translated |
Definition at line 57 of file qgstolerance.cpp.
|
static |
Static function to translate tolerance value into map units.
tolerance | tolerance value to be translated |
layer | source layer necessary in case tolerance is in layer units |
mapSettings | settings of the map |
units | type of units to be translated |
Definition at line 42 of file qgstolerance.cpp.
|
static |
Static function to get vertex tolerance value.
The value is read from settings and transformed if necessary.
Definition at line 76 of file qgstolerance.cpp.
|
static |
Static function to get vertex tolerance value for a layer.
The value is read from settings and transformed if necessary.
Definition at line 85 of file qgstolerance.cpp.