Class: QgsObjectEntityVisitorInterface¶
An interface for classes which can visit various object entity (e.g. embedded script) nodes using the visitor pattern.
Added in version 4.0.
Class Hierarchy¶
Subclasses¶
An object entity visitor to collect embedded scripts wthin a project and its layers. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsObjectEntityVisitorInterface. See the FAQ for more details.
Called when the visitor will visit an embedded script entity. |
- class qgis.core.QgsObjectEntityVisitorInterface[source]¶
Bases:
object- virtual visitEmbeddedScript(self, entity: QgsEmbeddedScriptEntity, context: QgsObjectVisitorContext) bool[source]¶
Called when the visitor will visit an embedded script
entity.Subclasses should return
Falseto abort further visitations, orTrueto continue visiting after processing this entity.- Parameters:
entity (QgsEmbeddedScriptEntity)
context (QgsObjectVisitorContext)
- Return type:
bool