open_viewmin.filter_tree_plot_Qt.widgets_Qt.filters_tree_widgets#
Routines to create and modify the in-GUI text representation of the filters tree
Functions#
|
Add top-level (root) item to the filters tree GUI representation |
|
Set up a logical tree of parent-child pairs of meshes and actors, |
|
For each branch of filters tree, find all child meshes and their child |
|
Create a text item for the filters tree GUI representation |
|
Update the GUI representation of the filters tree |
Module Contents#
- add_filters_tree_top_item(plotter, mesh_name, is_mesh=True, is_actor=False)#
Add top-level (root) item to the filters tree GUI representation
- Parameters:
plotter (
FilterTreePlotQt
)mesh_name (str)
is_mesh (bool or None)
is_actor (bool or None)
- create_filters_tree(plotter)#
Set up a logical tree of parent-child pairs of meshes and actors, to be displayed in the controls area
- fill_filters_tree_recursively(plotter, parent_filter_name, parent_tree_item)#
For each branch of filters tree, find all child meshes and their child meshes, etc., until reaching actors (leaves of tree)
- Parameters:
plotter (
FilterTreePlotQt
)parent_filter_name (str)
parent_tree_item (qtpy.QtWidgets.QTreeWidgetItem)
- format_for_filters_tree(plotter, label, is_mesh=None, is_actor=None)#
Create a text item for the filters tree GUI representation
The text is formatted according to whether the filter is associated with a mesh and/or actor.
- Parameters:
plotter (
FilterTreePlotQt
)label (str)
is_mesh (bool or None)
is_actor (bool or None`)
- Return type:
qtpy.QtWidgets.QTreeWidgetItem
- update_filters_tree(plotter)#
Update the GUI representation of the filters tree
- Parameters:
plotter (
FilterTreePlotQt
)