|
Blender V5.3
|
Tree-Display for the Scenes display mode. More...
#include <tree_display.hh>
Inherits blender::ed::outliner::AbstractTreeDisplay.
Public Member Functions | |
| TreeDisplayDataAPI (SpaceOutliner &space_outliner) | |
| ListBaseT< TreeElement > | build_tree (const TreeSourceData &source_data) override |
| bool | is_lazy_built () const override |
| Public Member Functions inherited from blender::ed::outliner::AbstractTreeDisplay | |
| AbstractTreeDisplay (SpaceOutliner &space_outliner) | |
| virtual | ~AbstractTreeDisplay ()=default |
| virtual bool | supports_mode_column () const |
| template<typename ElementType, typename... Args> | |
| TreeElement * | add_element (const TreeElementAddParams ¶ms, Args &&...args) |
| TreeElement * | add_id_element (const TreeElementAddParams ¶ms, ID *id) |
Additional Inherited Members | |
| Static Public Member Functions inherited from blender::ed::outliner::AbstractTreeDisplay | |
| static std::unique_ptr< AbstractTreeDisplay > | create_from_display_mode (int mode, SpaceOutliner &space_outliner) |
| TreeElement * | add_element_impl (const TreeElementAddParams ¶ms, short type, ID *owner_id, const void *persistent_ptr, bool allow_null_identity, FunctionRef< std::unique_ptr< AbstractTreeElement >(TreeElement &)> construct_fn) |
| Protected Attributes inherited from blender::ed::outliner::AbstractTreeDisplay | |
| SpaceOutliner & | space_outliner_ |
Tree-Display for the Scenes display mode.
Definition at line 415 of file tree_display.hh.
| blender::ed::outliner::TreeDisplayDataAPI::TreeDisplayDataAPI | ( | SpaceOutliner & | space_outliner | ) |
Definition at line 21 of file tree_display_data.cc.
References blender::ed::outliner::AbstractTreeDisplay::AbstractTreeDisplay().
|
overridevirtual |
Build a tree for this display mode with the Blender context data given in source_data and the view settings in space_outliner.
Implements blender::ed::outliner::AbstractTreeDisplay.
Definition at line 26 of file tree_display_data.cc.
References blender::ed::outliner::AbstractTreeDisplay::add_element(), blender::BLI_mempool_len(), blender::ed::outliner::TreeSourceData::bmain, blender::TreeStoreElem::flag, blender::RNA_main_pointer_create(), blender::ed::outliner::AbstractTreeDisplay::space_outliner_, TREESTORE, blender::SpaceOutliner::treestore, and blender::TSE_CLOSED.
|
overridevirtual |
Some trees may want to skip building children of collapsed parents. This should be done if the tree type may become very complex, which could cause noticeable slowdowns. Problem: This doesn't address performance issues while searching, since all elements are constructed for that. Trees of this type have to be rebuilt for any change to the collapsed state of any element.
Reimplemented from blender::ed::outliner::AbstractTreeDisplay.
Definition at line 44 of file tree_display_data.cc.