Blender V5.3
tree_element_seq.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_sequence_types.h"
12
13#include "tree_element.hh"
14
15namespace blender {
16
17struct Strip;
18struct StripData;
19
20namespace ed::outliner {
21
23 Strip &strip_;
24
25 public:
27
28 TreeElementStrip(TreeElement &legacy_te, Strip &strip);
29
31 static const void *persistent_ptr(Strip &strip)
32 {
33 return &strip;
34 }
35
36 bool expand_poll(const SpaceOutliner & /*soops*/) const override;
37 void expand(SpaceOutliner & /*soops*/) const override;
38
39 Strip &get_strip() const;
40 std::optional<BIFIconID> get_icon() const override;
41};
42
43/* -------------------------------------------------------------------- */
44
46 public:
48
49 TreeElementStripData(TreeElement &legacy_te, StripData &strip);
50
52 static const void *persistent_ptr(StripData &strip)
53 {
54 return &strip;
55 }
56
57 std::optional<BIFIconID> get_icon() const override
58 {
59 return ICON_LIBRARY_DATA_DIRECT;
60 }
61};
62
63/* -------------------------------------------------------------------- */
64
66 Strip &strip_;
67
68 public:
70
72
74 static const void *persistent_ptr(Strip &strip)
75 {
76 return &strip;
77 }
78
79 Strip &get_strip() const;
80
81 std::optional<BIFIconID> get_icon() const override
82 {
83 return ICON_SEQ_STRIP_DUPLICATE;
84 }
85};
86
87} // namespace ed::outliner
88} // namespace blender
std::optional< BIFIconID > get_icon() const override
static const void * persistent_ptr(StripData &strip)
TreeElementStripData(TreeElement &legacy_te, StripData &strip)
static constexpr eTreeStoreElemType element_type
static const void * persistent_ptr(Strip &strip)
static constexpr eTreeStoreElemType element_type
TreeElementStripDuplicate(TreeElement &legacy_te, Strip &strip)
std::optional< BIFIconID > get_icon() const override
static constexpr eTreeStoreElemType element_type
static const void * persistent_ptr(Strip &strip)
bool expand_poll(const SpaceOutliner &) const override
std::optional< BIFIconID > get_icon() const override
TreeElementStrip(TreeElement &legacy_te, Strip &strip)
BMesh Iterators.