Subgroup: Graph
Class: QgsGraphDirector¶
-
class
qgis.analysis.
QgsGraphDirector
¶ Bases:
PyQt5.QtCore.QObject
Determine making the graph. QgsGraphBuilder and QgsGraphDirector implementedusing “builder” design patter.
Methods
addStrategy
Add optimization strategy childEvent
connectNotify
customEvent
disconnectNotify
isSignalConnected
makeGraph
Make a graph using QgsGraphBuilder
name
Returns director name receivers
sender
senderSignalIndex
timerEvent
Signals
Attributes
-
addStrategy
(self, prop: QgsNetworkStrategy)¶ Add optimization strategy
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
makeGraph
(self, builder: QgsGraphBuilderInterface, additionalPoints: Iterable[QgsPointXY], feedback: QgsFeedback = None) → List[QgsPointXY]¶ Make a graph using
QgsGraphBuilder
Parameters: - builder – the graph builder
- additionalPoints – list of points that should be snapped to the graph
- snappedPoints – list of snapped points
- feedback – feedback object for reporting progress
Note
if snappedPoints[i] == QgsPointXY(0.0,0.0) then snapping failed.
-
name
(self) → str¶ Returns director name
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-