29 mGraph = std::make_unique< QgsGraph >();
36 mGraph->addVertex( pt );
41 mGraph->addEdge( pt1id, pt2id, prop );
54 mGraph = std::make_unique< QgsGraph >();
This class represents a coordinate reference system (CRS).
Determine interface for creating a graph.
~QgsGraphBuilder() override
QgsGraphBuilder(const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
Default constructor.
QgsGraph * takeGraph()
Takes the generated graph from the builder, resetting the builder back to its initial state ready for...
void addVertex(int id, const QgsPointXY &pt) override
Add vertex to the graph.
QgsGraph graph() const
Returns the generated QgsGraph.
void addEdge(int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop) override
Add edge to the graph.
Mathematical graph representation.
A class to represent a 2D point.
const QgsCoordinateReferenceSystem & crs