Blender V4.3
blender::ed::outliner::tree_iterator Namespace Reference

Typedefs

using VisitorFn = FunctionRef<void(TreeElement *)>
 

Functions

void all (const SpaceOutliner &space_outliner, const VisitorFn visitor)
 
void all (const ListBase &subtree, const VisitorFn visitor)
 
void all_open (const SpaceOutliner &space_outliner, const VisitorFn visitor)
 
void all_open (const SpaceOutliner &space_outliner, const ListBase &subtree, const VisitorFn visitor)
 

Typedef Documentation

◆ VisitorFn

Function Documentation

◆ all() [1/2]

void blender::ed::outliner::tree_iterator::all ( const ListBase & subtree,
const VisitorFn visitor )

Definition at line 24 of file tree_iterator.cc.

References all(), and LISTBASE_FOREACH_MUTABLE.

◆ all() [2/2]

void blender::ed::outliner::tree_iterator::all ( const SpaceOutliner & space_outliner,
VisitorFn visitor )

Preorder (meaning depth-first) traversal of all elements (regardless of collapsed state). Freeing the currently visited element in visitor is fine.

Definition at line 19 of file tree_iterator.cc.

References all_open(), and SpaceOutliner::tree.

Referenced by all(), blender::ed::outliner::do_outliner_item_activate_tree_element(), blender::ed::outliner::outliner_context_selected_ids(), blender::ed::outliner::outliner_flag_flip(), blender::ed::outliner::outliner_flag_set(), and blender::ed::outliner::outliner_set_subtree_coords().

◆ all_open() [1/2]

void blender::ed::outliner::tree_iterator::all_open ( const SpaceOutliner & space_outliner,
const ListBase & subtree,
const VisitorFn visitor )

Definition at line 42 of file tree_iterator.cc.

References all_open(), LISTBASE_FOREACH_MUTABLE, TREESTORE, and TSELEM_OPEN.

◆ all_open() [2/2]