mafw.steering_gui.models

GUI-facing models and Qt wrappers for steering metadata.

Author:

Bulgheroni Antonio

Description:

Holds the editable UI models that wrap steering builder domain objects.

class mafw.steering_gui.models.PipelineItem(config: ~mafw.steering.models.ProcessorConfig | ~mafw.steering.models.GroupConfig, parent: ~mafw.steering_gui.models.pipeline.PipelineItem | None = None, children: list[~mafw.steering_gui.models.pipeline.PipelineItem] = <factory>)[source]

Bases: object

UI wrapper around a processor or group configuration.

Parameters:
  • config – Domain configuration backing the item.

  • parent – Parent pipeline item (None when top-level).

  • children – Ordered list of child items.

is_group() bool[source]

Return True if this item wraps a group configuration.

name() str[source]

Return the replica-aware processor name or group name.

class mafw.steering_gui.models.ProcessorPipeline(items: list[~mafw.steering_gui.models.pipeline.PipelineItem] = <factory>)[source]

Bases: object

Container for the current processor pipeline tree.

Parameters:

items – Top-level pipeline items in execution order.

class mafw.steering_gui.models.ProcessorPipelineModel(pipeline: ProcessorPipeline | None = None, parent: QObject | None = None)[source]

Bases: QAbstractItemModel

Expose a ProcessorPipeline as a tree-structured Qt model.

pipeline() ProcessorPipeline[source]

Return the currently attached pipeline.

root_items() list[PipelineItem][source]

Return the top-level pipeline items.

set_pipeline(pipeline: ProcessorPipeline) None[source]

Replace the pipeline data and reset the model.

class mafw.steering_gui.models.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.SteeringTreeRoles(*values)[source]

Bases: IntEnum

Custom roles exported by the steering tree model.

Modules

filter_tree_model

Tree model representing the filter configuration hierarchy.

pipeline

UI-only pipeline structures used to render editable processor hierarchies.

processor_pipeline_model

Qt model for the processor pipeline tree.

steering_tree_model

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