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:
objectUI 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.
- class mafw.steering_gui.models.ProcessorPipeline(items: list[~mafw.steering_gui.models.pipeline.PipelineItem] = <factory>)[source]
Bases:
objectContainer 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:
QAbstractItemModelExpose 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:
QAbstractItemModelTree 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:
IntEnumCustom roles exported by the steering tree model.
Modules
Tree model representing the filter configuration hierarchy. |
|
UI-only pipeline structures used to render editable processor hierarchies. |
|
Qt model for the processor pipeline tree. |
|
Composite Qt model that embeds the processor pipeline under the steering tree. |