Blender V4.3
blender::ed::outliner::TreeDisplayDataAPI Class Referencefinal

Tree-Display for the Scenes display mode. More...

#include <tree_display.hh>

Inherits blender::ed::outliner::AbstractTreeDisplay.

Public Member Functions

 TreeDisplayDataAPI (SpaceOutliner &space_outliner)
 
ListBase 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
 
TreeElementadd_element (ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true)
 

Additional Inherited Members

- Static Public Member Functions inherited from blender::ed::outliner::AbstractTreeDisplay
static std::unique_ptr< AbstractTreeDisplaycreate_from_display_mode (int mode, SpaceOutliner &space_outliner)
 
static TreeElementadd_element (SpaceOutliner *space_outliner, ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true)
 
- Protected Attributes inherited from blender::ed::outliner::AbstractTreeDisplay
SpaceOutlinerspace_outliner_
 

Detailed Description

Tree-Display for the Scenes display mode.

Definition at line 281 of file tree_display.hh.

Constructor & Destructor Documentation

◆ TreeDisplayDataAPI()

blender::ed::outliner::TreeDisplayDataAPI::TreeDisplayDataAPI ( SpaceOutliner & space_outliner)

Definition at line 20 of file tree_display_data.cc.

Member Function Documentation

◆ build_tree()

ListBase blender::ed::outliner::TreeDisplayDataAPI::build_tree ( const TreeSourceData & source_data)
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 25 of file tree_display_data.cc.

References blender::ed::outliner::AbstractTreeDisplay::add_element(), BLI_mempool_len(), TreeStoreElem::flag, RNA_main_pointer_create(), source_data, blender::ed::outliner::AbstractTreeDisplay::space_outliner_, tree, TREESTORE, SpaceOutliner::treestore, and TSE_RNA_STRUCT.

◆ is_lazy_built()

bool blender::ed::outliner::TreeDisplayDataAPI::is_lazy_built ( ) const
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 43 of file tree_display_data.cc.


The documentation for this class was generated from the following files: