Class: QgsVectorLayerDirector¶
- class qgis.analysis.QgsVectorLayerDirector¶
Bases:
QgsGraphDirector
Determine making the graph from vector line layer
Added in version 3.0.
QgsVectorLayerDirector(source: Optional[QgsFeatureSource], directionFieldId: int, directDirectionValue: Optional[str], reverseDirectionValue: Optional[str], bothDirectionValue: Optional[str], defaultDirection: QgsVectorLayerDirector.Direction) Default constructor
- Parameters:
source – feature source representing network
directionFieldId – field containing direction value
directDirectionValue – value for direct one-way road
reverseDirectionValue – value for reversed one-way road
bothDirectionValue – value for two-way (bidirectional) road
defaultDirection –
- default direction. Will be used if corresponding
attribute value is not set or does not equal to the given values
Methods
MANDATORY DIRECTOR PROPERTY DECLARATION
- rtype:
str
Signals
Attributes
- class Direction¶
Bases:
int
- DirectionBackward = 1¶
- DirectionBoth = 2¶
- DirectionForward = 0¶
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- makeGraph(self, builder: QgsGraphBuilderInterface | None, additionalPoints: Iterable[QgsPointXY], feedback: QgsFeedback | None = None) List[QgsPointXY] ¶
MANDATORY DIRECTOR PROPERTY DECLARATION
- Parameters:
builder (Optional[QgsGraphBuilderInterface])
additionalPoints (Iterable[QgsPointXY])
feedback (Optional[QgsFeedback] = None)
- Return type:
List[QgsPointXY]
- name(self) str ¶
- Return type:
str
- receivers(self, signal: PYQT_SIGNAL) int ¶
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, a0: QTimerEvent | None)¶