Blender V5.3
tree_element_id_scene.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10#include "DNA_scene_types.h"
11
12#include "../outliner_intern.hh"
13
14#include "tree_display.hh"
19
20namespace blender::ed::outliner {
21
23 : TreeElementID(legacy_te, scene.id), scene_(scene)
24{
25}
26
27void TreeElementIDScene::expand(SpaceOutliner & /*space_outliner*/) const
28{
29 expand_view_layers();
30 expand_world();
31 expand_collections();
32 expand_objects();
33
34 expand_animation_data(scene_.adt);
35}
36
37void TreeElementIDScene::expand_view_layers() const
38{
40}
41
42void TreeElementIDScene::expand_world() const
43{
44 add_id_element({}, reinterpret_cast<ID *>(scene_.world));
45}
46
47void TreeElementIDScene::expand_collections() const
48{
50}
51
52void TreeElementIDScene::expand_objects() const
53{
55}
56
57} // namespace blender::ed::outliner
TreeElement * add_element(const TreeElementAddParams &params, Args &&...args) const
TreeElement * add_id_element(const TreeElementAddParams &params, ID *id) const
void expand(SpaceOutliner &) const override
TreeElementIDScene(TreeElement &legacy_te, Scene &scene)
TreeElementID(TreeElement &legacy_te, ID &id)
void expand_animation_data(AnimData *) const
struct World * world
Establish and manage Outliner trees for different display modes.