QGIS API Documentation
3.14.0-Pi (9f7028fd23)
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 :
[email protected]
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:141
crs
const QgsCoordinateReferenceSystem & crs
Definition:
qgswfsgetfeature.cpp:105
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsGraphBuilderInterface
Determine interface for creating a graph. Contains the settings of the graph. QgsGraphBuilder and Qgs...
Definition:
qgsgraphbuilderinterface.h:40
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
Definition:
qgscoordinatereferencesystem.h:206
QgsPointXY
Definition:
qgspointxy.h:43
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:35
QgsDistanceArea
Definition:
qgsdistancearea.h:49
qgsspatialindex.h
QgsCoordinateTransform
Definition:
qgscoordinatetransform.h:52
qgsgraphbuilderinterface.h
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17