Blender V5.3
tree_element_bone_collection.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
15namespace blender {
16
17struct bArmature;
18struct BoneCollection;
19
20namespace ed::outliner {
21
23 bArmature &armature_;
24
25 public:
27
29 void expand(SpaceOutliner & /*soops*/) const override;
30
33 static ID *owner_id(bArmature &armature);
34
35 std::optional<BIFIconID> get_icon() const override
36 {
37 return ICON_GROUP_BONE;
38 }
39};
40
42 bArmature &armature_;
43 BoneCollection &bcoll_;
44
45 public:
47
49 void expand(SpaceOutliner & /*soops*/) const override;
50
53 static ID *owner_id(bArmature &armature, BoneCollection &bcoll);
54
55 std::optional<BIFIconID> get_icon() const override
56 {
57 return ICON_GROUP_BONE;
58 }
59};
60
61} // namespace ed::outliner
62} // namespace blender
#define final(a, b, c)
Definition BLI_hash_c.hh:21
TreeElementBoneCollectionBase(TreeElement &legacy_te, bArmature &armature)
std::optional< BIFIconID > get_icon() const override
static ID * owner_id(bArmature &armature, BoneCollection &bcoll)
TreeElementBoneCollection(TreeElement &legacy_te, bArmature &armature, BoneCollection &bcoll)
BMesh Iterators.