Blender V4.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
9#include "DNA_listBase.h"
10#include "DNA_outliner_types.h"
11#include "DNA_scene_types.h"
12
13#include "../outliner_intern.hh"
14
16
17namespace blender::ed::outliner {
18
20 : TreeElementID(legacy_te, scene.id), scene_(scene)
21{
22}
23
24void TreeElementIDScene::expand(SpaceOutliner & /*space_outliner*/) const
25{
26 expand_view_layers();
27 expand_world();
28 expand_collections();
29 expand_objects();
30
32}
33
34void TreeElementIDScene::expand_view_layers() const
35{
37}
38
39void TreeElementIDScene::expand_world() const
40{
42 reinterpret_cast<ID *>(scene_.world),
43 nullptr,
46 0);
47}
48
49void TreeElementIDScene::expand_collections() const
50{
52}
53
54void TreeElementIDScene::expand_objects() const
55{
57}
58
59} // namespace blender::ed::outliner
These structs are the foundation for all linked lists in the library system.
@ TSE_SCENE_COLLECTION_BASE
@ TSE_SCENE_OBJECTS_BASE
@ TSE_R_LAYER_BASE
@ TSE_SOME_ID
TreeElement * add_element(ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
void expand(SpaceOutliner &) const override
TreeElementIDScene(TreeElement &legacy_te, Scene &scene)
void expand_animation_data(AnimData *) const
Definition DNA_ID.h:413
struct AnimData * adt
struct World * world