|
Blender V4.3
|
#include <AS_asset_catalog_tree.hh>
Public Member Functions | |
| void | insert_item (const AssetCatalog &catalog) |
| void | foreach_item (ItemIterFn callback) const |
| void | foreach_root_item (ItemIterFn callback) const |
| bool | is_empty () const |
| const AssetCatalogTreeItem * | find_item (const AssetCatalogPath &path) const |
| const AssetCatalogTreeItem * | find_root_item (const AssetCatalogPath &path) const |
Definition at line 76 of file AS_asset_catalog_tree.hh.
| const AssetCatalogTreeItem * blender::asset_system::AssetCatalogTree::find_item | ( | const AssetCatalogPath & | path | ) | const |
Definition at line 135 of file asset_catalog_tree.cc.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), foreach_item(), and result.
| const AssetCatalogTreeItem * blender::asset_system::AssetCatalogTree::find_root_item | ( | const AssetCatalogPath & | path | ) | const |
Definition at line 150 of file asset_catalog_tree.cc.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), foreach_root_item(), and result.
| void blender::asset_system::AssetCatalogTree::foreach_item | ( | AssetCatalogTreeItem::ItemIterFn | callback | ) | const |
Definition at line 118 of file asset_catalog_tree.cc.
References callback.
Referenced by blender::ed::asset::build_filtered_all_catalog_tree(), blender::ed::asset::build_filtered_catalog_tree(), find_item(), and blender::ed::sculpt_paint::visit_library_catalogs_catalog_for_search().
| void blender::asset_system::AssetCatalogTree::foreach_root_item | ( | ItemIterFn | callback | ) | const |
Iterate over root items calling callback for each of them, but do not recurse into their children.
Definition at line 123 of file asset_catalog_tree.cc.
References callback.
Referenced by blender::ed::asset::shelf::AssetCatalogSelectorTree::build_tree(), blender::ed::asset::shelf::AssetCatalogTreeView::build_tree(), blender::ed::asset_browser::AssetCatalogTreeView::build_tree(), and find_root_item().
| void blender::asset_system::AssetCatalogTree::insert_item | ( | const AssetCatalog & | catalog | ) |
Ensure an item representing path is in the tree, adding it if necessary.
Definition at line 81 of file asset_catalog_tree.cc.
References BLI_assert_msg, BLI_uuid_is_nil(), blender::asset_system::AssetCatalog::catalog_id, ELEM, blender::asset_system::AssetCatalog::flags, blender::asset_system::AssetCatalog::Flags::has_unsaved_changes, blender::asset_system::AssetCatalog::Flags::is_first_loaded, blender::asset_system::AssetCatalogPath::iterate_components(), blender::asset_system::AssetCatalog::path, blender::asset_system::AssetCatalog::simple_name, and blender::asset_system::AssetCatalogPath::str().
| bool blender::asset_system::AssetCatalogTree::is_empty | ( | ) | const |
Definition at line 130 of file asset_catalog_tree.cc.
Referenced by blender::ed::asset::shelf::AssetCatalogSelectorTree::build_tree(), and blender::ed::asset::shelf::AssetCatalogTreeView::build_tree().