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

Inheritance diagram of qgis.core.QgsObjectEntityVisitorInterface

Subclasses

QgsEmbeddedScriptVisitor

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.

visitEmbeddedScript

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 False to abort further visitations, or True to continue visiting after processing this entity.

Parameters:
Return type:

bool