QGIS API Documentation
3.6.0-Noosa (5873452)
|
This class used for 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 () override | |
void | addEdge (int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop) override |
Add edge to the graph. More... | |
void | addVertex (int id, const QgsPointXY &pt) override |
Add vertex to the graph. More... | |
QgsGraph * | graph () |
Returns generated QgsGraph. More... | |
Public Member Functions inherited from QgsGraphBuilderInterface | |
QgsGraphBuilderInterface (const QgsCoordinateReferenceSystem &crs, bool ctfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") | |
Default constructor. More... | |
virtual | ~QgsGraphBuilderInterface ()=default |
bool | coordinateTransformationEnabled () |
Returns coordinate transformation enabled. More... | |
QgsCoordinateReferenceSystem | destinationCrs () const |
Returns destinaltion CRS. More... | |
QgsDistanceArea * | distanceArea () |
Returns measurement tool. More... | |
double | topologyTolerance () |
Returns topology tolerance. More... | |
This class used for making the QgsGraph object.
Definition at line 35 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 26 of file qgsgraphbuilder.cpp.
|
override |
Definition at line 32 of file qgsgraphbuilder.cpp.
|
overridevirtual |
Add edge to the graph.
pt1id | first vertex identificator |
pt1 | first vertex coordinates |
pt2id | second vertex identificator |
pt2 | second vertex coordinates |
strategies | optimization strategies |
Reimplemented from QgsGraphBuilderInterface.
Definition at line 42 of file qgsgraphbuilder.cpp.
|
overridevirtual |
Add vertex to the graph.
id | vertex identifier |
pt | vertex coordinates |
Reimplemented from QgsGraphBuilderInterface.
Definition at line 37 of file qgsgraphbuilder.cpp.
QgsGraph * QgsGraphBuilder::graph | ( | ) |
Returns generated QgsGraph.
Definition at line 47 of file qgsgraphbuilder.cpp.