Class: QgsGraphDirector¶
-
class
qgis.analysis.
QgsGraphDirector
¶ Bases:
PyQt5.QtCore.QObject
Determine making the graph. QgsGraphBuilder and QgsGraphDirector implemented using “builder” design patter.
Enums
Methods
Add optimization strategy
Make a graph using
QgsGraphBuilder
Returns director name
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
()¶
-