Blender
V5.3
source
blender
editors
space_outliner
tree
tree_element_defgroup.hh
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
#pragma once
10
11
#include "
DNA_outliner_types.h
"
12
13
#include "
tree_element.hh
"
14
15
namespace
blender
{
16
17
struct
Object
;
18
struct
bDeformGroup
;
19
20
namespace
ed::outliner
{
21
22
class
TreeElementDeformGroupBase
final
:
public
AbstractTreeElement
{
23
Object
&object_;
24
25
public
:
26
static
constexpr
eTreeStoreElemType
element_type
=
TSE_DEFGROUP_BASE
;
27
28
TreeElementDeformGroupBase
(
TreeElement
&legacy_te,
Object
&
object
);
29
void
expand
(
SpaceOutliner
&
/*soops*/
)
const override
;
30
33
static
ID
*
owner_id
(
Object
&
object
);
34
35
std::optional<BIFIconID>
get_icon
()
const override
36
{
37
return
ICON_GROUP_VERTEX;
38
}
39
};
40
41
class
TreeElementDeformGroup
final
:
public
AbstractTreeElement
{
42
/* Not needed right now, avoid unused member variable warning. */
43
// Object &object_;
44
bDeformGroup
&defgroup_;
45
46
public
:
47
static
constexpr
eTreeStoreElemType
element_type
=
TSE_DEFGROUP
;
48
49
TreeElementDeformGroup
(
TreeElement
&legacy_te,
Object
&
object
,
bDeformGroup
&defgroup);
50
53
static
ID
*
owner_id
(
Object
&
object
,
bDeformGroup
&defgroup);
54
55
std::optional<BIFIconID>
get_icon
()
const override
56
{
57
return
ICON_GROUP_VERTEX;
58
}
59
};
60
61
}
// namespace ed::outliner
62
}
// namespace blender
final
#define final(a, b, c)
Definition
BLI_hash_c.hh:21
DNA_outliner_types.h
blender::ed::outliner::AbstractTreeElement::AbstractTreeElement
AbstractTreeElement(TreeElement &legacy_te)
Definition
tree_element.hh:101
blender::ed::outliner::TreeElementDeformGroupBase::element_type
static constexpr eTreeStoreElemType element_type
Definition
tree_element_defgroup.hh:26
blender::ed::outliner::TreeElementDeformGroupBase::expand
void expand(SpaceOutliner &) const override
Definition
tree_element_defgroup.cc:37
blender::ed::outliner::TreeElementDeformGroupBase::owner_id
static ID * owner_id(Object &object)
Definition
tree_element_defgroup.cc:32
blender::ed::outliner::TreeElementDeformGroupBase::TreeElementDeformGroupBase
TreeElementDeformGroupBase(TreeElement &legacy_te, Object &object)
Definition
tree_element_defgroup.cc:25
blender::ed::outliner::TreeElementDeformGroupBase::get_icon
std::optional< BIFIconID > get_icon() const override
Definition
tree_element_defgroup.hh:35
blender::ed::outliner::TreeElementDeformGroup::TreeElementDeformGroup
TreeElementDeformGroup(TreeElement &legacy_te, Object &object, bDeformGroup &defgroup)
Definition
tree_element_defgroup.cc:47
blender::ed::outliner::TreeElementDeformGroup::element_type
static constexpr eTreeStoreElemType element_type
Definition
tree_element_defgroup.hh:47
blender::ed::outliner::TreeElementDeformGroup::owner_id
static ID * owner_id(Object &object, bDeformGroup &defgroup)
Definition
tree_element_defgroup.cc:57
blender::ed::outliner::TreeElementDeformGroup::get_icon
std::optional< BIFIconID > get_icon() const override
Definition
tree_element_defgroup.hh:55
blender::ed::outliner
Definition
outliner_collections.cc:51
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::eTreeStoreElemType
eTreeStoreElemType
Definition
DNA_outliner_types.h:39
blender::TSE_DEFGROUP_BASE
@ TSE_DEFGROUP_BASE
Definition
DNA_outliner_types.h:52
blender::TSE_DEFGROUP
@ TSE_DEFGROUP
Definition
DNA_outliner_types.h:53
blender::ID
Definition
DNA_ID.h:415
blender::Object
Definition
DNA_object_types.h:466
blender::SpaceOutliner
Definition
DNA_space_types.h:178
blender::bDeformGroup
Definition
DNA_object_types.h:337
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:111
tree_element.hh
Generated on
for Blender by
doxygen
1.18.0