Blender V5.3
outliner_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <memory>
12
13#include "DNA_listBase.h"
14
15#include "BLI_function_ref.hh"
16
17#include "RNA_types.hh"
18
19/* Needed for `tree_element_cast()`. */
20#include "tree/tree_element.hh"
21
22namespace blender {
23
24/* internal exports only */
25
26struct ARegion;
27struct Collection;
28struct EditBone;
29struct ID;
30struct LayerCollection;
31struct Main;
32struct Object;
33struct Scene;
34struct TreeStoreElem;
35struct ViewLayer;
36struct bContext;
38struct bPoseChannel;
39struct View2D;
40struct wmKeyConfig;
41struct wmOperatorType;
42struct WorkSpace;
43
45class TreeHash;
46}
47
48enum eTreeStoreElem_Flag : short;
49
50namespace ed::outliner {
51
54
55namespace treehash = bke::outliner::treehash;
56
57struct TreeElement;
58
62 std::unique_ptr<AbstractTreeDisplay> tree_display;
63
64 /* Hash table for tree-store elements, using `(id, type, index)` as key. */
65 std::unique_ptr<treehash::TreeHash> tree_hash;
66
67 ListBaseT<ed::outliner::TreeElement> tree = {nullptr, nullptr};
68
73};
74
80
89
90/* #TreeElement::flag */
92 TE_ACTIVE = (1 << 0),
93 /* Closed items display their children as icon within the row. TE_ICONROW is for
94 * these child-items that are visible but only within the row of the closed parent. */
95 TE_ICONROW = (1 << 1),
100 TE_FREE_NAME = (1 << 3),
101 TE_DRAGGING = (1 << 4),
103 /* Child elements of the same type in the icon-row are drawn merged as one icon.
104 * This flag is set for an element that is part of these merged child icons. */
106};
108
109using TreeTraversalFunc = TreeTraversalAction (*)(TreeElement *te, void *customdata);
110
113
120 std::unique_ptr<AbstractTreeElement> abstract_element;
121
122 ListBaseT<TreeElement> subtree;
123 int xs, ys; /* Do selection. */
124 TreeStoreElem *store_elem; /* Element in tree store. */
125 TreeElementFlag flag; /* Flag for non-saved stuff. */
126 short index; /* Index for data arrays. */
127 short idcode; /* From TreeStore id. */
128 short xend; /* Width of item display, for select. */
129 const char *name;
130 void *directdata; /* Armature Bones, Base, ... */
131};
132
137
138#define TREESTORE_ID_TYPE(_id) \
139 (ELEM(GS((_id)->name), \
140 ID_SCE, \
141 ID_LI, \
142 ID_OB, \
143 ID_ME, \
144 ID_CU_LEGACY, \
145 ID_MB, \
146 ID_NT, \
147 ID_MA, \
148 ID_TE, \
149 ID_IM, \
150 ID_LT, \
151 ID_LA, \
152 ID_CA) || \
153 ELEM(GS((_id)->name), \
154 ID_KE, \
155 ID_WO, \
156 ID_SPK, \
157 ID_GR, \
158 ID_AR, \
159 ID_AC, \
160 ID_BR, \
161 ID_PA, \
162 ID_GD_LEGACY, \
163 ID_LS, \
164 ID_LP, \
165 ID_CV, \
166 ID_PT, \
167 ID_VO, \
168 ID_GP) || /* Only in blend-file mode ... :/ */ \
169 ELEM(GS((_id)->name), \
170 ID_SCR, \
171 ID_WM, \
172 ID_TXT, \
173 ID_VF, \
174 ID_SO, \
175 ID_CF, \
176 ID_PAL, \
177 ID_MC, \
178 ID_WS, \
179 ID_MSK, \
180 ID_PC))
181
183 OL_DRAWSEL_NONE = 0, /* inactive (regular black text) */
184 OL_DRAWSEL_NORMAL = 1, /* active object (draws white text) */
185 OL_DRAWSEL_ACTIVE = 2, /* active obdata (draws a circle around the icon) */
186};
187
189 OL_SETSEL_NONE = 0, /* don't change the selection state */
190 OL_SETSEL_NORMAL = 1, /* select the item */
191 OL_SETSEL_EXTEND = 2, /* select the item and extend (also toggles selection) */
192};
193
194/* get TreeStoreElem associated with a TreeElement
195 * < a: (TreeElement) tree element to find stored element for
196 */
197#define TREESTORE(a) ((a)->store_elem)
198
199/* size constants */
200#define OL_Y_OFFSET 2
201
202#define OL_TOG_USER_BUTS_USERS (UI_UNIT_X * 1.2f + V2D_SCROLL_WIDTH)
203
204#define OL_RNA_COLX (UI_UNIT_X * 15)
205#define OL_RNA_COL_SIZEX (UI_UNIT_X * 7.5f)
206#define OL_RNA_COL_SPACEX (UI_UNIT_X * 2.5f)
207
208/* The outliner display modes that support the filter system.
209 * NOTE: keep it synced with `space_outliner.py`. */
210#define SUPPORT_FILTER_OUTLINER(space_outliner_) \
211 (ELEM((space_outliner_)->outlinevis, SO_VIEW_LAYER, SO_OVERRIDES_LIBRARY))
212
213/* Outliner Searching --
214 *
215 * Are we looking for something in the outliner?
216 * If so finding matches in child items makes it more useful
217 *
218 * - We want to flag parents to act as being open to filter child matches
219 * - and also flag matches so we can highlight them
220 * - Flags are stored in TreeStoreElem->flag
221 * - Flag options defined in DNA_outliner_types.h
222 * - SO_SEARCH_RECURSIVE defined in DNA_space_types.h
223 *
224 * - NOT in data-blocks view - searching all data-blocks takes way too long
225 * to be useful
226 * - not searching into RNA items helps but isn't the complete solution
227 */
228
229#define SEARCHING_OUTLINER(sov) ((sov)->search_flags & SO_SEARCH_RECURSIVE)
230
231/* is the current element open? if so we also show children */
232#define TSELEM_OPEN(telm, sv) \
233 (CHECK_TYPE_INLINE(telm, TreeStoreElem *), \
234 (((telm)->flag & TSE_CLOSED) == 0 || \
235 (SEARCHING_OUTLINER(sv) && ((telm)->flag & TSE_CHILDSEARCH))))
236
242 /* Workspace. */
244
246
247 /* Scene level. */
251
252 /* Object level. */
260};
261
263 OL_ITEM_DESELECT = 0, /* Deselect the item */
264 OL_ITEM_SELECT = (1 << 0), /* Select the item */
265 OL_ITEM_SELECT_DATA = (1 << 1), /* Select object data */
266 OL_ITEM_ACTIVATE = (1 << 2), /* Activate the item */
267 OL_ITEM_EXTEND = (1 << 3), /* Extend the current selection */
268 OL_ITEM_RECURSIVE = (1 << 4), /* Select recursively */
269};
270
271/* `outliner_tree.cc` */
272
273void outliner_free_tree(ListBaseT<TreeElement> *tree);
274void outliner_cleanup_tree(SpaceOutliner *space_outliner);
281void outliner_free_tree_element(TreeElement *element, ListBaseT<TreeElement> *parent_subtree);
282
286void outliner_build_tree(Main *mainvar,
287 WorkSpace *workspace,
288 Scene *scene,
289 ViewLayer *view_layer,
290 SpaceOutliner *space_outliner,
291 ARegion *region);
292
294 SpaceOutliner *space_outliner,
295 Collection *collection,
296 TreeElement *ten);
297
299
301 ListBaseT<LinkData> selected_array;
302};
303
306
307bool outliner_treesort_tiebreak(bool a_is_object,
308 const char *a_name,
309 bool b_is_object,
310 const char *b_name);
311
312/* `outliner_draw.cc` */
313
317void draw_outliner(const bContext *C, bool do_rebuild);
318
319void outliner_tree_dimensions(SpaceOutliner *space_outliner, int *r_width, int *r_height);
320
322
323void outliner_collection_isolate_flag(const Main &bmain,
324 Scene *scene,
325 ViewLayer *view_layer,
326 LayerCollection *layer_collection,
327 Collection *collection,
328 PropertyRNA *layer_or_collection_prop,
329 const char *propname,
330 bool value);
331
339
340/* `outliner_select.cc` */
345 const TreeViewContext &tvc,
346 TreeElement *te,
347 TreeStoreElem *tselem,
348 eOLSetState set,
349 bool recursive);
354 const TreeElement *te,
355 const TreeStoreElem *tselem);
360 const TreeViewContext &tvc,
361 TreeElement *te,
362 eOLSetState set,
363 bool handle_all_types);
365 const TreeElement *te,
366 const TreeStoreElem *tselem);
367
369
374 SpaceOutliner *space_outliner,
375 TreeElement *te,
376 short select_flag);
377
381bool outliner_item_is_co_over_name_icons(const TreeElement *te, float view_co_x);
382bool outliner_item_is_co_over_icon(const TreeElement *te, float view_co_x);
386bool outliner_item_is_co_over_name(const TreeElement *te, float view_co_x);
390bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x);
391bool outliner_is_co_within_mode_column(SpaceOutliner *space_outliner, const float view_mval[2]);
392
397 const TreeViewContext &tvc,
398 TreeElement *te,
399 bool do_extend);
400
401/* `outliner_edit.cc` */
403 ReportList *reports,
404 Scene *scene,
405 TreeElement *te,
406 TreeStoreElem *tsep,
407 TreeStoreElem *tselem)>;
408
414 ReportList *reports,
415 Scene *scene,
416 SpaceOutliner *space_outliner,
417 ListBaseT<TreeElement> *lb,
418 outliner_operation_fn operation_fn,
419 bool recurse_selected);
421 ReportList *reports,
422 Scene *scene,
423 SpaceOutliner *space_outliner,
424 ListBaseT<TreeElement> *lb,
425 outliner_operation_fn operation_fn);
426
427int outliner_flag_is_any_test(ListBaseT<TreeElement> *lb, eTreeStoreElem_Flag flag, int curlevel);
432bool outliner_flag_set(SpaceOutliner &space_outliner, eTreeStoreElem_Flag flag, short set);
433bool outliner_flag_set(ListBaseT<TreeElement> &lb, eTreeStoreElem_Flag flag, short set);
434bool outliner_flag_flip(SpaceOutliner &space_outliner, eTreeStoreElem_Flag flag);
435bool outliner_flag_flip(ListBaseT<TreeElement> &lb, eTreeStoreElem_Flag flag);
436
438 ReportList *reports,
439 Scene *scene,
440 TreeElement *te,
441 TreeStoreElem *tsep,
442 TreeStoreElem *tselem);
444 ReportList *reports,
445 Scene *scene,
446 TreeElement *te,
447 TreeStoreElem *tsep,
448 TreeStoreElem *tselem);
450 ReportList *reports,
451 Scene *scene,
452 TreeElement *te,
453 TreeStoreElem *tsep,
454 TreeStoreElem *tselem);
455
457 ReportList *reports,
458 Scene *scene,
459 TreeElement *te,
460 TreeStoreElem *tsep,
461 TreeStoreElem *tselem);
462void id_remap_fn(bContext *C, TreeStoreElem *tselem);
463
467void outliner_set_coordinates(const ARegion *region, SpaceOutliner *space_outliner);
468
472void outliner_item_openclose(TreeElement *te, bool open, bool toggle_all);
473
474void outliner_scroll_to_active(SpaceOutliner *space_outliner, ARegion *region, short idcode);
475
476/* `outliner_dragdrop.cc` */
477
481void outliner_dropboxes();
482
490
491/* ...................................................... */
492
494
500
503
507
510
515
517
520
523
526
527/* `outliner_query.cc` */
528
533bool outliner_shows_mode_column(const SpaceOutliner &space_outliner);
534bool outliner_has_element_warnings(const SpaceOutliner &space_outliner);
535
536/* `outliner_tools.cc` */
537
539 TreeElement *parent_te,
540 TreeElement *activate_te);
541
542/* Menu only! Calls other operators */
543
562
563/* `outliner_ops.cc` */
564
566void outliner_keymap(wmKeyConfig *keyconf);
567
568/* `outliner_collections.cc` */
569
573 bContext *C, Main *bmain, Scene *scene, ReportList *reports, bool do_hierarchy);
574
589
601
603
604/* `outliner_utils.cc` */
605
607
613 const ListBaseT<TreeElement> *tree,
614 float view_co_y);
622 TreeElement *parent_te,
623 float view_co_x,
624 bool *r_is_merged_icon,
625 bool *r_is_over_icon);
629TreeElement *outliner_find_tree_element(ListBaseT<TreeElement> *lb,
630 const TreeStoreElem *store_elem);
634TreeElement *outliner_find_parent_element(ListBaseT<TreeElement> *lb,
635 TreeElement *parent_te,
636 const TreeElement *child_te);
641 ListBaseT<TreeElement> *lb,
642 const ID *id,
643 TreeElementFlag exclude_flags);
644TreeElement *outliner_find_posechannel(ListBaseT<TreeElement> *lb, const bPoseChannel *pchan);
645TreeElement *outliner_find_editbone(ListBaseT<TreeElement> *lb, const EditBone *ebone);
647ID *outliner_search_back(TreeElement *te, short idcode);
656bool outliner_tree_traverse(const SpaceOutliner *space_outliner,
657 ListBaseT<TreeElement> *tree,
658 int filter_te_flag,
659 int filter_tselem_flag,
661 void *customdata);
662float outliner_right_columns_width(const SpaceOutliner *space_outliner);
666TreeElement *outliner_find_element_with_flag(const ListBaseT<TreeElement> *lb, short flag);
676bool outliner_is_element_in_view(const TreeElement *te, const View2D *v2d);
680void outliner_scroll_view(SpaceOutliner *space_outliner, ARegion *region, int delta_y);
687 ARegion *region);
688
689/* `outliner_sync.cc` */
690
696 const TreeViewContext &tvc,
697 SpaceOutliner *space_outliner,
698 short &idcode);
699
700/* `outliner_context.cc` */
701
703 const char *member,
705
711template<typename TreeElementT> TreeElementT *tree_element_cast(const TreeElement *te)
712{
713 static_assert(std::is_base_of_v<AbstractTreeElement, TreeElementT>,
714 "Requested tree-element type must be an AbstractTreeElement");
715 return dynamic_cast<TreeElementT *>(te->abstract_element.get());
716}
717
718} // namespace ed::outliner
719} // namespace blender
These structs are the foundation for all linked lists in the library system.
#define C
Definition RandGen.cpp:29
void OUTLINER_OT_expanded_toggle(wmOperatorType *ot)
bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x)
TreeTraversalAction(*)(TreeElement *te, void *customdata) TreeTraversalFunc
void OUTLINER_OT_delete(wmOperatorType *ot)
void OUTLINER_OT_collection_duplicate_linked(wmOperatorType *ot)
void OUTLINER_OT_collection_objects_deselect(wmOperatorType *ot)
bool outliner_item_is_co_over_icon(const TreeElement *te, float view_co_x)
void OUTLINER_OT_collection_disable_render(wmOperatorType *ot)
TreeElement * outliner_find_item_at_y(const SpaceOutliner *space_outliner, const ListBaseT< TreeElement > *tree, float view_co_y)
void outliner_tag_redraw_avoid_rebuild_on_open_change(const SpaceOutliner *space_outliner, ARegion *region)
void OUTLINER_OT_item_rename(wmOperatorType *ot)
void OUTLINER_OT_scene_operation(wmOperatorType *ot)
void OUTLINER_OT_collection_link(wmOperatorType *ot)
void OUTLINER_OT_collection_color_tag_set(wmOperatorType *ot)
void OUTLINER_OT_collection_hierarchy_delete(wmOperatorType *ot)
void OUTLINER_OT_pack_data(wmOperatorType *ot)
void OUTLINER_OT_collection_exclude_set(wmOperatorType *ot)
void OUTLINER_OT_collection_show(wmOperatorType *ot)
eOLDrawState tree_element_type_active_state_get(const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
void OUTLINER_OT_show_hierarchy(wmOperatorType *ot)
int outliner_flag_is_any_test(ListBaseT< TreeElement > *lb, eTreeStoreElem_Flag flag, const int curlevel)
bool outliner_tree_traverse(const SpaceOutliner *space_outliner, ListBaseT< TreeElement > *tree, int filter_te_flag, int filter_tselem_flag, TreeTraversalFunc func, void *customdata)
void OUTLINER_OT_highlight_update(wmOperatorType *ot)
bool outliner_is_collection_tree_element(const TreeElement *te)
void OUTLINER_OT_data_operation(wmOperatorType *ot)
void OUTLINER_OT_lib_operation(wmOperatorType *ot)
void OUTLINER_OT_drivers_add_selected(wmOperatorType *ot)
void OUTLINER_OT_select_all(wmOperatorType *ot)
TreeElement * outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, TreeElement *parent_te, float view_co_x, bool *r_is_merged_icon, bool *r_is_over_icon)
void OUTLINER_OT_constraint_operation(wmOperatorType *ot)
void OUTLINER_OT_id_linked_relocate(wmOperatorType *ot)
void OUTLINER_OT_lib_relocate(wmOperatorType *ot)
void OUTLINER_OT_collection_indirect_only_clear(wmOperatorType *ot)
void OUTLINER_OT_hide(wmOperatorType *ot)
float outliner_right_columns_width(const SpaceOutliner *space_outliner)
void OUTLINER_OT_collection_holdout_set(wmOperatorType *ot)
void OUTLINER_OT_collection_hide(wmOperatorType *ot)
void id_delete_tag_fn(bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
TreeElement * outliner_find_parent_element(ListBaseT< TreeElement > *lb, TreeElement *parent_te, const TreeElement *child_te)
void OUTLINER_OT_collection_exclude_clear(wmOperatorType *ot)
TreeElement * outliner_search_back_te(TreeElement *te, short idcode)
FunctionRef< void(bContext *C, ReportList *reports, Scene *scene, TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem)> outliner_operation_fn
void tree_element_activate(bContext *C, const TreeViewContext &tvc, TreeElement *te, eOLSetState set, bool handle_all_types)
void OUTLINER_OT_collection_objects_select(wmOperatorType *ot)
bool outliner_requires_rebuild_on_select_or_active_change(const SpaceOutliner *space_outliner)
void OUTLINER_OT_item_activate(wmOperatorType *ot)
void OUTLINER_OT_modifier_operation(wmOperatorType *ot)
void outliner_collection_delete(bContext *C, Main *bmain, Scene *scene, ReportList *reports, bool do_hierarchy)
void OUTLINER_OT_collection_drop(wmOperatorType *ot)
TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
void OUTLINER_OT_id_paste(wmOperatorType *ot)
void OUTLINER_OT_clear_filter(wmOperatorType *ot)
TreeElement * outliner_find_id(SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, const ID *id, TreeElementFlag exclude_flags)
void outliner_scroll_to_active(SpaceOutliner *space_outliner, ARegion *region, short idcode)
bPoseChannel * outliner_find_parent_bone(TreeElement *te, TreeElement **r_bone_te)
bool outliner_flag_set(SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag, const short set)
void OUTLINER_OT_datastack_drop(wmOperatorType *ot)
void OUTLINER_OT_start_filter(wmOperatorType *ot)
void OUTLINER_OT_unhide_all(wmOperatorType *ot)
void OUTLINER_OT_drivers_delete_selected(wmOperatorType *ot)
TreeElement * outliner_find_posechannel(ListBaseT< TreeElement > *lb, const bPoseChannel *pchan)
void OUTLINER_OT_collection_hide_inside(wmOperatorType *ot)
ENUM_OPERATORS(TreeElementFlag)
void OUTLINER_OT_show_one_level(wmOperatorType *ot)
void OUTLINER_OT_collection_enable(wmOperatorType *ot)
void OUTLINER_OT_show_active(wmOperatorType *ot)
void OUTLINER_OT_id_copy(wmOperatorType *ot)
void OUTLINER_OT_object_operation(wmOperatorType *ot)
void outliner_do_object_operation_ex(bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, outliner_operation_fn operation_fn, bool recurse_selected)
void outliner_item_mode_toggle(bContext *C, const TreeViewContext &tvc, TreeElement *te, bool do_extend)
void outliner_viewcontext_init(const bContext *C, TreeViewContext *tvc)
void OUTLINER_OT_select_walk(wmOperatorType *ot)
bool outliner_is_element_in_view(const TreeElement *te, const View2D *v2d)
void OUTLINER_OT_orphans_manage(wmOperatorType *ot)
TreeTraversalAction outliner_collect_selected_objects(TreeElement *te, void *customdata)
Collection * outliner_collection_from_tree_element(const TreeElement *te)
void outliner_scroll_view(SpaceOutliner *space_outliner, ARegion *region, int delta_y)
void OUTLINER_OT_animdata_operation(wmOperatorType *ot)
void lib_relocate_fn(bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
int outliner_main_region_context(const bContext *C, const char *member, bContextDataResult *result)
bool outliner_is_element_visible(const TreeElement *te)
int tree_element_id_type_to_index(TreeElement *te)
bool outliner_is_co_within_mode_column(SpaceOutliner *space_outliner, const float view_mval[2])
TreeElement * outliner_find_editbone(ListBaseT< TreeElement > *lb, const EditBone *ebone)
void OUTLINER_OT_lib_reload(wmOperatorType *ot)
void OUTLINER_OT_material_drop(wmOperatorType *ot)
void OUTLINER_OT_scene_drop(wmOperatorType *ot)
void outliner_item_openclose(TreeElement *te, bool open, bool toggle_all)
void OUTLINER_OT_action_set(wmOperatorType *ot)
void OUTLINER_OT_parent_drop(wmOperatorType *ot)
void OUTLINER_OT_scroll_page(wmOperatorType *ot)
void OUTLINER_OT_keyingset_remove_selected(wmOperatorType *ot)
void OUTLINER_OT_id_remap(wmOperatorType *ot)
void OUTLINER_OT_id_delete(wmOperatorType *ot)
bool outliner_sync_selection(const bContext *C, const TreeViewContext &tvc, SpaceOutliner *space_outliner, short &idcode)
void id_remap_fn(bContext *C, TreeStoreElem *tselem)
TreeElementT * tree_element_cast(const TreeElement *te)
ID * outliner_search_back(TreeElement *te, short idcode)
void merged_element_search_menu_invoke(bContext *C, TreeElement *parent_te, TreeElement *activate_te)
void OUTLINER_OT_keyingset_add_selected(wmOperatorType *ot)
void outliner_free_tree_element(TreeElement *element, ListBaseT< TreeElement > *parent_subtree)
bool outliner_treesort_tiebreak(bool a_is_object, const char *a_name, bool b_is_object, const char *b_name)
void lib_reload_fn(bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
void outliner_cleanup_tree(SpaceOutliner *space_outliner)
void OUTLINER_OT_liboverride_property_remove(wmOperatorType *ot)
void OUTLINER_OT_item_openclose(wmOperatorType *ot)
TreeElement * outliner_find_tree_element(ListBaseT< TreeElement > *lb, const TreeStoreElem *store_elem)
void OUTLINER_OT_collection_holdout_clear(wmOperatorType *ot)
void OUTLINER_OT_collection_duplicate(wmOperatorType *ot)
void OUTLINER_OT_collection_isolate(wmOperatorType *ot)
void OUTLINER_OT_collection_disable(wmOperatorType *ot)
void outliner_free_tree(ListBaseT< TreeElement > *tree)
bool outliner_item_is_co_over_name(const TreeElement *te, float view_co_x)
bool outliner_item_is_co_over_name_icons(const TreeElement *te, float view_co_x)
void OUTLINER_OT_collection_show_inside(wmOperatorType *ot)
void outliner_collection_isolate_flag(const Main &bmain, Scene *scene, ViewLayer *view_layer, LayerCollection *layer_collection, Collection *collection, PropertyRNA *layer_or_collection_prop, const char *propname, const bool value)
TreeElement * outliner_add_collection_recursive(AbstractTreeDisplay &tree_display, SpaceOutliner *space_outliner, Collection *collection, TreeElement *ten)
void OUTLINER_OT_liboverride_troubleshoot_operation(wmOperatorType *ot)
void tree_element_type_active_set(bContext *C, const TreeViewContext &tvc, TreeElement *te, TreeStoreElem *tselem, eOLSetState set, bool recursive)
bool outliner_flag_flip(SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag)
void outliner_keymap(wmKeyConfig *keyconf)
void outliner_tree_dimensions(SpaceOutliner *space_outliner, int *r_width, int *r_height)
void outliner_set_coordinates(const ARegion *region, SpaceOutliner *space_outliner)
bool outliner_has_element_warnings(const SpaceOutliner &space_outliner)
void OUTLINER_OT_operation(wmOperatorType *ot)
void OUTLINER_OT_parent_clear(wmOperatorType *ot)
bool outliner_shows_mode_column(const SpaceOutliner &space_outliner)
void item_rename_fn(bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
eOLDrawState tree_element_active_state_get(const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
void outliner_build_tree(Main *mainvar, WorkSpace *workspace, Scene *scene, ViewLayer *view_layer, SpaceOutliner *space_outliner, ARegion *region)
void OUTLINER_OT_select_box(wmOperatorType *ot)
void OUTLINER_OT_collection_new(wmOperatorType *ot)
void OUTLINER_OT_collection_instance(wmOperatorType *ot)
void draw_outliner(const bContext *C, bool do_rebuild)
void OUTLINER_OT_collection_indirect_only_set(wmOperatorType *ot)
TreeTraversalAction outliner_collect_selected_collections(TreeElement *te, void *customdata)
void outliner_do_object_operation(bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, outliner_operation_fn operation_fn)
void OUTLINER_OT_id_operation(wmOperatorType *ot)
void OUTLINER_OT_liboverride_operation(wmOperatorType *ot)
void outliner_item_select(bContext *C, SpaceOutliner *space_outliner, TreeElement *te, short select_flag)
void OUTLINER_OT_item_drag_drop(wmOperatorType *ot)
void OUTLINER_OT_orphans_purge(wmOperatorType *ot)
TreeElement * outliner_find_element_with_flag(const ListBaseT< TreeElement > *lb, short flag)
void OUTLINER_OT_collection_enable_render(wmOperatorType *ot)
BMesh Iterators.
ATTR_WARN_UNUSED_RESULT const void * element
std::unique_ptr< treehash::TreeHash > tree_hash
ListBaseT< ed::outliner::TreeElement > tree
std::unique_ptr< AbstractTreeDisplay > tree_display
std::unique_ptr< AbstractTreeElement > abstract_element