QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Mathematical graph representation.
int addVertex(const QgsPointXY &pt)
Add a vertex to the graph.
const QgsCoordinateReferenceSystem & crs
QgsGraphBuilder(const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
Default constructor.
void addEdge(int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop) override
Add edge to the graph.
Determine interface for creating a graph.
QgsGraph * graph()
Returns generated QgsGraph.
~QgsGraphBuilder() override
This class represents a coordinate reference system (CRS).
A class to represent a 2D point.
void addVertex(int id, const QgsPointXY &pt) override
Add vertex to the graph.
int addEdge(int fromVertexIdx, int toVertexIdx, const QVector< QVariant > &strategies)
Add an edge to the graph, going from the fromVertexIdx to toVertexIdx.