Blender
V5.0
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
8
9
#include "
DNA_outliner_types.h
"
10
#include "
DNA_texture_types.h
"
11
12
#include "
../outliner_intern.hh
"
13
14
#include "
tree_element_id_texture.hh
"
15
16
namespace
blender::ed::outliner
{
17
18
TreeElementIDTexture::TreeElementIDTexture
(
TreeElement
&legacy_te,
Tex
&
texture
)
19
:
TreeElementID
(legacy_te,
texture
.id), texture_(
texture
)
20
{
21
}
22
23
void
TreeElementIDTexture::expand
(
SpaceOutliner
&
/*space_outliner*/
)
const
24
{
25
expand_animation_data
(texture_.adt);
26
27
expand_image();
28
}
29
30
void
TreeElementIDTexture::expand_image()
const
31
{
32
add_element
(&
legacy_te_
.
subtree
,
33
reinterpret_cast<
ID
*
>
(texture_.
ima
),
34
nullptr
,
35
&
legacy_te_
,
36
TSE_SOME_ID
,
37
0);
38
}
39
40
}
// namespace blender::ed::outliner
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:243
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:23
blender::ed::outliner::TreeElementIDTexture::TreeElementIDTexture
TreeElementIDTexture(TreeElement &legacy_te, Tex &texture)
Definition
tree_element_id_texture.cc:18
blender::ed::outliner::TreeElementID::TreeElementID
TreeElementID(TreeElement &legacy_te, ID &id)
Definition
tree_element_id.cc:103
blender::ed::outliner::TreeElementID::expand_animation_data
void expand_animation_data(AnimData *) const
Definition
tree_element_id.cc:129
texture
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
blender::ed::outliner
Definition
outliner_collections.cc:44
outliner_intern.hh
ID
Definition
DNA_ID.h:414
SpaceOutliner
Definition
DNA_space_types.h:187
Tex
Definition
DNA_texture_types.h:73
Tex::ima
struct Image * ima
Definition
DNA_texture_types.h:130
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:87
blender::ed::outliner::TreeElement::subtree
ListBase subtree
Definition
outliner_intern.hh:98
tree_element_id_texture.hh
Generated on
for Blender by
doxygen
1.16.1