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
|
Tree model exposing the steering sections and embedded processor pipeline. |
|
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:
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.