QGIS API Documentation
3.14.0-Pi (9f7028fd23)
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
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
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
n
o
p
q
r
s
t
u
w
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
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
qgsgraphdirector.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgraphdirector.h
3
--------------------------------------
4
Date : 2010-10-18
5
Copyright : (C) 2010 by Yakushev Sergey
6
Email : YakushevS <at> 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 QGSGRAPHDIRECTOR_H
17
#define QGSGRAPHDIRECTOR_H
18
19
#include <QObject>
20
#include <QVector>
21
#include <QList>
22
23
#include "
qgis_sip.h
"
24
#include "
qgsfeedback.h
"
25
#include "
qgsnetworkstrategy.h
"
26
#include "qgis_analysis.h"
27
28
class
QgsGraphBuilderInterface
;
29
class
QgsPoint
;
30
31
#ifdef SIP_RUN
32
% ModuleHeaderCode
33
#include <
qgsvectorlayerdirector.h
>
34
% End
35
#endif
36
43
class
ANALYSIS_EXPORT
QgsGraphDirector
:
public
QObject
44
{
45
46
#ifdef SIP_RUN
47
SIP_CONVERT_TO_SUBCLASS_CODE
48
if
(
dynamic_cast<
QgsVectorLayerDirector
*
>
( sipCpp ) != NULL )
49
sipType = sipType_QgsVectorLayerDirector;
50
else
51
sipType = NULL;
52
SIP_END
53
#endif
54
55
Q_OBJECT
56
57
public
:
58
59
~QgsGraphDirector
()
override
60
{
61
qDeleteAll( mStrategies );
62
}
63
73
virtual
void
makeGraph
(
QgsGraphBuilderInterface
*builder,
74
const
QVector< QgsPointXY > &additionalPoints,
75
QVector< QgsPointXY > &snappedPoints
SIP_OUT
,
76
QgsFeedback
*feedback =
nullptr
)
const
77
{
78
Q_UNUSED( builder )
79
Q_UNUSED( additionalPoints )
80
Q_UNUSED( snappedPoints )
81
Q_UNUSED( feedback )
82
}
83
85
void
addStrategy
(
QgsNetworkStrategy
*prop
SIP_TRANSFER
)
86
{
87
mStrategies.push_back( prop );
88
}
89
91
virtual
QString name()
const
= 0;
92
93
protected
:
94
QList<QgsNetworkStrategy *>
mStrategies
;
95
};
96
97
#endif // QGSGRAPHDIRECTOR_H
qgsvectorlayerdirector.h
QgsGraphDirector
Determine making the graph. QgsGraphBuilder and QgsGraphDirector implemented using "builder" design p...
Definition:
qgsgraphdirector.h:43
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition:
qgspoint.h:37
SIP_OUT
#define SIP_OUT
Definition:
qgis_sip.h:58
QgsGraphDirector::~QgsGraphDirector
~QgsGraphDirector() override
Definition:
qgsgraphdirector.h:59
QgsGraphBuilderInterface
Determine interface for creating a graph. Contains the settings of the graph. QgsGraphBuilder and Qgs...
Definition:
qgsgraphbuilderinterface.h:40
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition:
qgis_sip.h:172
QgsFeedback
Definition:
qgsfeedback.h:43
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsGraphDirector::addStrategy
void addStrategy(QgsNetworkStrategy *prop)
Add optimization strategy.
Definition:
qgsgraphdirector.h:85
QgsGraphDirector::makeGraph
virtual void makeGraph(QgsGraphBuilderInterface *builder, const QVector< QgsPointXY > &additionalPoints, QVector< QgsPointXY > &snappedPoints, QgsFeedback *feedback=nullptr) const
Make a graph using QgsGraphBuilder.
Definition:
qgsgraphdirector.h:73
qgsnetworkstrategy.h
QgsVectorLayerDirector
Determine making the graph from vector line layer.
Definition:
qgsvectorlayerdirector.h:33
qgsfeedback.h
SIP_END
#define SIP_END
Definition:
qgis_sip.h:189
QgsGraphDirector::mStrategies
QList< QgsNetworkStrategy * > mStrategies
Definition:
qgsgraphdirector.h:94
QgsNetworkStrategy
QgsNetworkStrategy defines strategy used for calculation of the edge cost. For example it can take in...
Definition:
qgsnetworkstrategy.h:42
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17