QGIS API Documentation
2.6.0-Brighton
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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 :
[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
#ifndef QGSGRAPHBUILDERH
16
#define QGSGRAPHBUILDERH
17
18
#include "
qgsgraphbuilderintr.h
"
19
20
//QT4 includes
21
22
//QGIS includes
23
#include <
qgsspatialindex.h
>
24
25
//forward declarations
26
class
QgsDistanceArea
;
27
class
QgsCoordinateTransform
;
28
class
QgsGraph
;
29
36
class
ANALYSIS_EXPORT
QgsGraphBuilder
:
public
QgsGraphBuilderInterface
37
{
38
public
:
42
QgsGraphBuilder
(
const
QgsCoordinateReferenceSystem
& crs,
bool
otfEnabled =
true
,
double
topologyTolerance = 0.0,
const
QString& ellipsoidID =
"WGS84"
);
43
44
~
QgsGraphBuilder
();
45
46
/*
47
* MANDATORY BUILDER PROPERTY DECLARATION
48
*/
49
virtual
void
addVertex
(
int
id
,
const
QgsPoint
& pt );
50
51
virtual
void
addArc
(
int
pt1id,
const
QgsPoint
& pt1,
int
pt2id,
const
QgsPoint
& pt2,
const
QVector< QVariant >& prop );
52
56
QgsGraph
* graph();
57
58
private
:
59
60
QgsGraph
*mGraph;
61
};
62
#endif //QGSGRAPHBUILDERH
Generated on Fri Oct 31 2014 15:49:45 for QGIS API Documentation by
1.8.1.2