mafw.steering_gui.models.steering_tree_model

Composite Qt model that embeds the processor pipeline under the steering tree.

Author:

Bulgheroni Antonio

Description:

Presents the fixed steering sections plus the editable processors subtree.

Classes

SteeringTreeModel(controller[, pipeline, parent])

Tree model exposing the steering sections and embedded processor pipeline.

SteeringTreeRoles(*values)

Custom roles exported by the steering tree model.

class mafw.steering_gui.models.steering_tree_model.SteeringTreeModel(controller: object, pipeline: ProcessorPipeline | None = None, parent: QObject | None = None)[source]

Bases: QAbstractItemModel

Tree model exposing the steering sections and embedded processor pipeline.

pipeline_item_from_index(index: QModelIndex | QPersistentModelIndex) PipelineItem | None[source]

Return the pipeline item stored at the given index, if any.

section_key_from_index(index: QModelIndex | QPersistentModelIndex) str | None[source]

Return the section key stored at the given index, if any.

set_pipeline(pipeline: ProcessorPipeline) None[source]

Replace the pipeline subtree and reset the model.

class mafw.steering_gui.models.steering_tree_model.SteeringTreeRoles(*values)[source]

Bases: IntEnum

Custom roles exported by the steering tree model.

class mafw.steering_gui.models.steering_tree_model._SectionNode(label: str, key: str, children: list[~mafw.steering_gui.models.steering_tree_model._SectionNode] = <factory>)[source]

Bases: object

Internal tree node for the fixed steering sections.