|
QGIS API Documentation
3.2.0-Bonn (bc43194)
|
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.
|
inline |
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 61 of file qgsgraphbuilderinterface.h.
|
virtualdefault |
|
inlinevirtual |
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 117 of file qgsgraphbuilderinterface.h.
|
inlinevirtual |
Add vertex to the graph.
| id | vertex identifier |
| pt | vertex coordinates |
Reimplemented in QgsGraphBuilder.
Definition at line 102 of file qgsgraphbuilderinterface.h.
|
inline |
Returns coordinate transformation enabled.
Definition at line 79 of file qgsgraphbuilderinterface.h.
|
inline |
Returns destinaltion CRS.
Definition at line 73 of file qgsgraphbuilderinterface.h.
|
inline |
Returns measurement tool.
Definition at line 91 of file qgsgraphbuilderinterface.h.
|
inline |
Returns topology tolerance.
Definition at line 85 of file qgsgraphbuilderinterface.h.
1.8.13