Blender V5.3
tree_element_id.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
10
11#pragma once
12
13#include "tree_element.hh"
14
15namespace blender {
16
17struct AnimData;
18struct ID;
19
20namespace ed::outliner {
21
23 protected:
25
26 public:
27 TreeElementID(TreeElement &legacy_te, ID &id);
28
29 static std::unique_ptr<TreeElementID> create_from_id(TreeElement &legacy_te, ID &id);
30
31 bool expand_poll(const SpaceOutliner & /*soops*/) const override;
32
33 void expand(SpaceOutliner & /*soops*/) const override;
34
36 {
37 return id_;
38 }
39
40 protected:
41 /* ID types with animation data can use this. */
42 void expand_animation_data(AnimData *) const;
43};
44
45} // namespace ed::outliner
46} // namespace blender
bool expand_poll(const SpaceOutliner &) const override
TreeElementID(TreeElement &legacy_te, ID &id)
static std::unique_ptr< TreeElementID > create_from_id(TreeElement &legacy_te, ID &id)
void expand_animation_data(AnimData *) const
void expand(SpaceOutliner &) const override
BMesh Iterators.