Class: QgsVectorLayerDirector¶
- class qgis.analysis.QgsVectorLayerDirector¶
Bases:
QgsGraphDirector
Determine making the graph from vector line layer
New in version 3.0.
QgsVectorLayerDirector(source:
QgsFeatureSource
, directionFieldId: int, directDirectionValue: str, reverseDirectionValue: str, bothDirectionValue: 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
Attributes
- class Direction¶
Bases:
int
- DirectionBackward = 1¶
- DirectionBoth = 2¶
- DirectionForward = 0¶
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- makeGraph(self, builder: QgsGraphBuilderInterface, additionalPoints: Iterable[QgsPointXY], feedback: QgsFeedback = None) List[QgsPointXY] ¶
MANDATORY DIRECTOR PROPERTY DECLARATION
- Parameters:
builder (QgsGraphBuilderInterface) –
additionalPoints (Iterable[QgsPointXY]) –
feedback (
QgsFeedback
= None) –
- Return type:
List[QgsPointXY]
- name(self) str ¶
- Return type:
str
- receivers(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶