|
QGIS API Documentation
2.14.0-Essen
|
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 More... | |
| ~QgsGraphBuilder () | |
| virtual void | addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &prop) override |
| add arc More... | |
| virtual void | addVertex (int id, const QgsPoint &pt) override |
| add vertex More... | |
| QgsGraph * | graph () |
| return QgsGraph result; More... | |
Public Member Functions inherited from QgsGraphBuilderInterface | |
| QgsGraphBuilderInterface (const QgsCoordinateReferenceSystem &crs, bool ctfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") | |
| QgsGraphBuilderInterface constructor. More... | |
| virtual | ~QgsGraphBuilderInterface () |
| Destructor. More... | |
| bool | coordinateTransformationEnabled () |
| get coordinate transformation enabled More... | |
| QgsCoordinateReferenceSystem & | destinationCrs () |
| get destinaltion Crs More... | |
| QgsDistanceArea * | distanceArea () |
| get measurement tool More... | |
| double | topologyTolerance () |
| get topology tolerance More... | |
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" |
||
| ) |
default constructor
Definition at line 24 of file qgsgraphbuilder.cpp.
| QgsGraphBuilder::~QgsGraphBuilder | ( | ) |
Definition at line 30 of file qgsgraphbuilder.cpp.
|
overridevirtual |
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 40 of file qgsgraphbuilder.cpp.
|
overridevirtual |
add vertex
| id | vertex identifier |
| pt | vertex coordinate |
Reimplemented from QgsGraphBuilderInterface.
Definition at line 35 of file qgsgraphbuilder.cpp.
| QgsGraph * QgsGraphBuilder::graph | ( | ) |
return QgsGraph result;
Definition at line 45 of file qgsgraphbuilder.cpp.
1.8.11