|
Quantum GIS API Documentation
1.8
|
This class making the QgsGraph object. More...
#include <qgsgraphbuilder.h>


Public Member Functions | |
| QgsGraphBuilder (const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") | |
| default constructor | |
| ~QgsGraphBuilder () | |
| virtual void | addVertex (int id, const QgsPoint &pt) |
| add vertex | |
| virtual void | addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &prop) |
| add arc | |
| QgsGraph * | graph () |
| return QgsGraph result; | |
Private Attributes | |
| QgsGraph * | mGraph |
This class making the QgsGraph object.
Definition at line 36 of file qgsgraphbuilder.h.
| QgsGraphBuilder::QgsGraphBuilder | ( | const QgsCoordinateReferenceSystem & | crs, |
| bool | otfEnabled = true, |
||
| double | topologyTolerance = 0.0, |
||
| const QString & | ellipsoidID = "WGS84" |
||
| ) |
Definition at line 30 of file qgsgraphbuilder.cpp.
References mGraph.
| void QgsGraphBuilder::addArc | ( | int | pt1id, |
| const QgsPoint & | pt1, | ||
| int | pt2id, | ||
| const QgsPoint & | pt2, | ||
| const QVector< QVariant > & | properties | ||
| ) | [virtual] |
add arc
| pt1id | first vertex identificator |
| pt1 | first vertex coordinate |
| pt2id | second vertex identificator |
| pt2 | second vertex coordinate |
| properties | arc properties |
Reimplemented from QgsGraphBuilderInterface.
Definition at line 41 of file qgsgraphbuilder.cpp.
References QgsGraph::addArc(), and mGraph.
| void QgsGraphBuilder::addVertex | ( | int | id, |
| const QgsPoint & | pt | ||
| ) | [virtual] |
add vertex
| id | vertex identifier |
| pt | vertex coordinate |
Reimplemented from QgsGraphBuilderInterface.
Definition at line 36 of file qgsgraphbuilder.cpp.
References QgsGraph::addVertex(), and mGraph.
QgsGraph* QgsGraphBuilder::mGraph [private] |
Definition at line 60 of file qgsgraphbuilder.h.
Referenced by addArc(), addVertex(), graph(), QgsGraphBuilder(), and ~QgsGraphBuilder().
1.7.6.1