Blender
V5.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
8
9
#include "
DNA_outliner_types.h
"
10
#include "
DNA_texture_types.h
"
11
12
#include "
../outliner_intern.hh
"
13
14
#include "
tree_display.hh
"
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_id_element
({},
reinterpret_cast<
ID
*
>
(texture_.
ima
));
34
}
35
36
}
// namespace blender::ed::outliner
DNA_outliner_types.h
DNA_texture_types.h
blender::ed::outliner::AbstractTreeElement::add_id_element
TreeElement * add_id_element(const TreeElementAddParams ¶ms, ID *id) const
Definition
tree_element.cc:73
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::TreeElementID
TreeElementID(TreeElement &legacy_te, ID &id)
Definition
tree_element_id.cc:109
blender::ed::outliner::TreeElementID::expand_animation_data
void expand_animation_data(AnimData *) const
Definition
tree_element_id.cc:135
texture
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
blender::bke::id
Definition
AS_asset_library.hh:32
blender::ed::outliner
Definition
outliner_collections.cc:51
outliner_intern.hh
blender::ID
Definition
DNA_ID.h:415
blender::SpaceOutliner
Definition
DNA_space_types.h:178
blender::Tex
Definition
DNA_texture_types.h:355
blender::Tex::ima
struct Image * ima
Definition
DNA_texture_types.h:416
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:111
tree_display.hh
Establish and manage Outliner trees for different display modes.
tree_element_id_texture.hh
Generated on
for Blender by
doxygen
1.18.0