QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgstolerance.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstolerance.h - wrapper for tolerance handling
3
----------------------
4
begin : March 2009
5
copyright : (C) 2009 by Richard Kostecky
6
email : csf.kostej at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSTOLERANCE_H
17
#define QGSTOLERANCE_H
18
19
#include <QObject>
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
24
class
QgsMapSettings
;
25
class
QgsMapLayer
;
26
class
QgsPointXY
;
27
32
class
CORE_EXPORT
QgsTolerance
33
{
34
Q_GADGET
35
public
:
36
41
enum
UnitType
42
{
44
LayerUnits
,
46
Pixels
,
48
ProjectUnits
49
};
50
Q_ENUM( UnitType )
51
52
58
static
double
vertexSearchRadius(
const
QgsMapSettings
&mapSettings );
59
65
static
double
vertexSearchRadius(
QgsMapLayer
*layer,
const
QgsMapSettings
&mapSettings );
66
72
static
double
defaultTolerance(
QgsMapLayer
*layer,
const
QgsMapSettings
&mapSettings );
73
83
static
double
toleranceInProjectUnits(
double
tolerance,
QgsMapLayer
*layer,
const
QgsMapSettings
&mapSettings,
QgsTolerance::UnitType
units );
84
93
static
double
toleranceInMapUnits(
double
tolerance,
QgsMapLayer
*layer,
const
QgsMapSettings
&mapSettings, UnitType units = LayerUnits );
94
95
private
:
96
static
double
computeMapUnitPerPixel(
QgsMapLayer
*layer,
const
QgsMapSettings
&mapSettings );
97
static
QgsPointXY
toLayerCoordinates(
QgsMapLayer
*layer,
const
QgsMapSettings
&mapSettings, QPoint point );
98
99
};
100
101
#endif
QgsTolerance::UnitType
UnitType
Type of unit of tolerance value from settings.
Definition:
qgstolerance.h:41
QgsTolerance::Pixels
@ Pixels
Pixels unit of tolerance.
Definition:
qgstolerance.h:46
qgis_sip.h
QgsTolerance::LayerUnits
@ LayerUnits
Layer unit value.
Definition:
qgstolerance.h:44
QgsPointXY
A class to represent a 2D point.
Definition:
qgspointxy.h:58
QgsTolerance
This is the class is providing tolerance value in map unit values.
Definition:
qgstolerance.h:32
QgsMapLayer
Base class for all map layer types. This is the base class for all map layer types (vector,...
Definition:
qgsmaplayer.h:72
QgsMapSettings
The QgsMapSettings class contains configuration for rendering of the map. The rendering itself is don...
Definition:
qgsmapsettings.h:88
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17