Blender  V3.3
Typedefs | Functions
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

Definition at line 18 of file tree_iterator.hh.

Function Documentation

◆ all() [1/2]

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

Definition at line 22 of file tree_iterator.cc.

References all(), element, 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 17 of file tree_iterator.cc.

References all_open(), and SpaceOutliner::tree.

Referenced by all(), outliner_context_selected_ids_recursive(), outliner_flag_flip(), outliner_flag_set(), and 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 40 of file tree_iterator.cc.

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

◆ all_open() [2/2]

void blender::ed::outliner::tree_iterator::all_open ( const SpaceOutliner ,
VisitorFn  visitor 
)