Blender
V4.3
source
blender
editors
space_outliner
tree
tree_element_id_texture.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_texture_types.h
"
12
13
#include "
../outliner_intern.hh
"
14
15
#include "
tree_element_id_texture.hh
"
16
17
namespace
blender::ed::outliner
{
18
19
TreeElementIDTexture::TreeElementIDTexture
(
TreeElement
&legacy_te,
Tex
&texture)
20
:
TreeElementID
(legacy_te, texture.id), texture_(texture)
21
{
22
}
23
24
void
TreeElementIDTexture::expand
(
SpaceOutliner
&
/*space_outliner*/
)
const
25
{
26
expand_animation_data
(texture_.
adt
);
27
28
expand_image();
29
}
30
31
void
TreeElementIDTexture::expand_image()
const
32
{
33
add_element
(&
legacy_te_
.
subtree
,
34
reinterpret_cast<
ID
*
>
(texture_.
ima
),
35
nullptr
,
36
&
legacy_te_
,
37
TSE_SOME_ID
,
38
0);
39
}
40
41
}
// namespace blender::ed::outliner
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
DNA_outliner_types.h
TSE_SOME_ID
@ TSE_SOME_ID
Definition
DNA_outliner_types.h:65
DNA_texture_types.h
blender::ed::outliner::AbstractTreeElement::add_element
TreeElement * add_element(ListBase *lb, ID *owner_id, void *create_data, TreeElement *parent, short type, short index, const bool expand=true) const
Definition
tree_element.cc:240
blender::ed::outliner::AbstractTreeElement::legacy_te_
TreeElement & legacy_te_
Definition
tree_element.hh:36
blender::ed::outliner::TreeElementIDTexture::expand
void expand(SpaceOutliner &) const override
Definition
tree_element_id_texture.cc:24
blender::ed::outliner::TreeElementIDTexture::TreeElementIDTexture
TreeElementIDTexture(TreeElement &legacy_te, Tex &texture)
Definition
tree_element_id_texture.cc:19
blender::ed::outliner::TreeElementID
Definition
tree_element_id.hh:20
blender::ed::outliner::TreeElementID::expand_animation_data
void expand_animation_data(AnimData *) const
Definition
tree_element_id.cc:132
blender::ed::outliner
Definition
outliner_collections.cc:42
outliner_intern.hh
ID
Definition
DNA_ID.h:413
SpaceOutliner
Definition
DNA_space_types.h:289
Tex
Definition
DNA_texture_types.h:159
Tex::adt
struct AnimData * adt
Definition
DNA_texture_types.h:164
Tex::ima
struct Image * ima
Definition
DNA_texture_types.h:222
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:84
blender::ed::outliner::TreeElement::subtree
ListBase subtree
Definition
outliner_intern.hh:95
tree_element_id_texture.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0