Subgroup: Graph
Class: QgsGraphDirector¶
-
class
qgis.analysis.
QgsGraphDirector
¶ Bases:
PyQt5.QtCore.QObject
Determine making the graph. QgsGraphBuilder and QgsGraphDirector implemented using “builder” design patter.
Methods
addStrategy
Add optimization strategy blockSignals
childEvent
children
connectNotify
customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
makeGraph
Make a graph using QgsGraphBuilder
metaObject
moveToThread
name
Returns director name objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
sender
senderSignalIndex
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr
Attributes
destroyed
destroyed(self, QObject = None) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
-
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
()¶
-