QGIS API Documentation
2.6.0-Brighton
|
This is the class is providing tolerance value in map unit values. More...
#include <qgstolerance.h>
Public Types | |
enum | UnitType { MapUnits, Pixels } |
Type of unit of tolerance value from settings. More... |
Static Public Member Functions | |
static double | vertexSearchRadius (QgsMapLayer *layer, const QgsMapSettings &mapSettings) |
Static function to get vertex tolerance value for a layer. | |
static Q_DECL_DEPRECATED double | vertexSearchRadius (QgsMapLayer *layer, QgsMapRenderer *renderer) |
Static function to get vertex tolerance value for a layer. | |
static double | defaultTolerance (QgsMapLayer *layer, const QgsMapSettings &mapSettings) |
Static function to get default tolerance value for a layer. | |
static Q_DECL_DEPRECATED double | defaultTolerance (QgsMapLayer *layer, QgsMapRenderer *renderer) |
Static function to get default tolerance value for a layer. | |
static double | toleranceInMapUnits (double tolerance, QgsMapLayer *layer, const QgsMapSettings &mapSettings, UnitType units=MapUnits) |
Static function to translate tolerance value into current map unit value. | |
static Q_DECL_DEPRECATED double | toleranceInMapUnits (double tolerance, QgsMapLayer *layer, QgsMapRenderer *renderer, UnitType units=MapUnits) |
Static function to translate tolerance value into current map unit value. |
This is the class is providing tolerance value in map unit values.
|
static |
Static function to get default tolerance value for a layer.
The value is read from settings and transformed if necessary.
|
static |
Static function to get default tolerance value for a layer.
The value is read from settings and transformed if necessary.
|
static |
Static function to translate tolerance value into current map unit value.
tolerance | tolerance value to be translated |
layer | reference layer |
mapSettings | settings of the map |
units | type of units to be translated |
|
static |
Static function to translate tolerance value into current map unit value.
tolerance | tolerance value to be translated |
layer | reference layer |
renderer | renderer |
units | type of units to be translated |
|
static |
Static function to get vertex tolerance value for a layer.
The value is read from settings and transformed if necessary.
|
static |
Static function to get vertex tolerance value for a layer.
The value is read from settings and transformed if necessary.