QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
28 , mGraph( std::make_unique<
QgsGraph >() )
36 mGraph->addVertex( pt );
41 mGraph->addEdge( pt1id, pt2id, prop );
54 mGraph = std::make_unique< QgsGraph >();
Mathematical graph representation.
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. Contains the settings of the graph. QgsGraphBuilder and Qgs...
~QgsGraphBuilder() override
This class represents a coordinate reference system (CRS).
A class to represent a 2D point.
QgsGraph * takeGraph()
Takes the generated graph from the builder, resetting the builder back to its initial state ready for...
QgsGraph graph() const
Returns the generated QgsGraph.
void addVertex(int id, const QgsPointXY &pt) override
Add vertex to the graph.