QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
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
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
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
m
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
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
analysis
network
qgsgraphbuilder.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgraphbuilder.h
3
--------------------------------------
4
Date : 2010-10-25
5
Copyright : (C) 2010 by Yakushev Sergey
6
Email : YakushevS@list.ru
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 QGSGRAPHBUILDER_H
17
#define QGSGRAPHBUILDER_H
18
19
#include "
qgsgraphbuilderinterface.h
"
20
#include "
qgis_sip.h
"
21
22
#include "
qgsspatialindex.h
"
23
#include "qgis_analysis.h"
24
25
class
QgsDistanceArea
;
26
class
QgsCoordinateTransform
;
27
class
QgsGraph
;
28
35
class
ANALYSIS_EXPORT
QgsGraphBuilder
:
public
QgsGraphBuilderInterface
SIP_NODEFAULTCTORS
36
{
37
public
:
38
42
QgsGraphBuilder
(
const
QgsCoordinateReferenceSystem
&
crs
,
bool
otfEnabled =
true
,
double
topologyTolerance = 0.0,
const
QString &ellipsoidID =
"WGS84"
);
43
44
~
QgsGraphBuilder
()
override
;
45
46
/*
47
* MANDATORY BUILDER PROPERTY DECLARATION
48
*/
49
void
addVertex
(
int
id
,
const
QgsPointXY
&pt )
override
;
50
51
void
addEdge
(
int
pt1id,
const
QgsPointXY
&pt1,
int
pt2id,
const
QgsPointXY
&pt2,
const
QVector< QVariant > &prop )
override
;
52
56
QgsGraph
*graph()
SIP_FACTORY
;
57
58
private
:
59
60
QgsGraph
*mGraph =
nullptr
;
61
62
QgsGraphBuilder
(
const
QgsGraphBuilder
& ) =
delete
;
63
QgsGraphBuilder
&operator=(
const
QgsGraphBuilder
& ) =
delete
;
64
};
65
66
// clazy:excludeall=qstring-allocations
67
68
#endif // QGSGRAPHBUILDER_H
QgsGraph
Mathematical graph representation.
Definition:
qgsgraph.h:142
crs
const QgsCoordinateReferenceSystem & crs
Definition:
qgswfsgetfeature.cpp:51
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsGraphBuilderInterface
Determine interface for creating a graph.
Definition:
qgsgraphbuilderinterface.h:41
QgsGraphBuilderInterface::addEdge
virtual void addEdge(int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &strategies)
Add edge to the graph.
Definition:
qgsgraphbuilderinterface.cpp:36
qgis_sip.h
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition:
qgscoordinatereferencesystem.h:206
QgsPointXY
A class to represent a 2D point.
Definition:
qgspointxy.h:44
SIP_NODEFAULTCTORS
#define SIP_NODEFAULTCTORS
Definition:
qgis_sip.h:101
QgsGraphBuilderInterface::addVertex
virtual void addVertex(int id, const QgsPointXY &pt)
Add vertex to the graph.
Definition:
qgsgraphbuilderinterface.cpp:30
QgsGraphBuilder
This class used for making the QgsGraph object.
Definition:
qgsgraphbuilder.h:36
QgsDistanceArea
A general purpose distance and area calculator, capable of performing ellipsoid based calculations.
Definition:
qgsdistancearea.h:50
qgsspatialindex.h
QgsCoordinateTransform
Class for doing transforms between two map coordinate systems.
Definition:
qgscoordinatetransform.h:53
qgsgraphbuilderinterface.h
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20