QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Determine interface for creating a graph. More...
#include <qgsgraphbuilderinterface.h>
Public Member Functions | |
QgsGraphBuilderInterface (const QgsCoordinateReferenceSystem &crs, bool ctfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84") | |
Default constructor. More... | |
virtual | ~QgsGraphBuilderInterface ()=default |
virtual void | addEdge (int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &strategies) |
Add edge to the graph. More... | |
virtual void | addVertex (int id, const QgsPointXY &pt) |
Add vertex to the graph. More... | |
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... | |
Determine interface for creating a graph.
Contains the settings of the graph. QgsGraphBuilder and QgsGraphDirector both use a "builder" design pattern
Definition at line 40 of file qgsgraphbuilderinterface.h.
QgsGraphBuilderInterface::QgsGraphBuilderInterface | ( | const QgsCoordinateReferenceSystem & | crs, |
bool | ctfEnabled = true , |
||
double | topologyTolerance = 0.0 , |
||
const QString & | ellipsoidID = "WGS84" |
||
) |
Default constructor.
crs | Coordinate reference system for new graph vertex |
ctfEnabled | enable coordinate transform from source graph CRS to CRS graph |
topologyTolerance | sqrt distance between source point as one graph vertex |
ellipsoidID | ellipsoid for edge measurement |
Definition at line 20 of file qgsgraphbuilderinterface.cpp.
|
virtualdefault |
|
virtual |
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 in QgsGraphBuilder.
Definition at line 36 of file qgsgraphbuilderinterface.cpp.
|
virtual |
Add vertex to the graph.
id | vertex identifier |
pt | vertex coordinates |
Reimplemented in QgsGraphBuilder.
Definition at line 30 of file qgsgraphbuilderinterface.cpp.
|
inline |
Returns coordinate transformation enabled.
Definition at line 73 of file qgsgraphbuilderinterface.h.
|
inline |
Returns destinaltion CRS.
Definition at line 67 of file qgsgraphbuilderinterface.h.
|
inline |
Returns measurement tool.
Definition at line 85 of file qgsgraphbuilderinterface.h.
|
inline |
Returns topology tolerance.
Definition at line 79 of file qgsgraphbuilderinterface.h.