Blender
V5.3
source
blender
editors
space_outliner
tree
tree_element_particle_system.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
ParticleSystem
;
19
20
namespace
ed::outliner
{
21
22
class
TreeElementParticleSystem
final
:
public
AbstractTreeElement
{
23
/* Not needed right now, avoid unused member variable warning. */
24
// Object &object_;
25
ParticleSystem
&psys_;
26
27
public
:
28
static
constexpr
eTreeStoreElemType
element_type
=
TSE_LINKED_PSYS
;
29
30
TreeElementParticleSystem
(
TreeElement
&legacy_te,
Object
&
object
,
ParticleSystem
&psys);
31
34
static
ID
*
owner_id
(
Object
&
object
,
ParticleSystem
&psys);
35
36
std::optional<BIFIconID>
get_icon
()
const override
37
{
38
return
ICON_PARTICLES;
39
}
40
};
41
42
}
// namespace ed::outliner
43
}
// 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::TreeElementParticleSystem::TreeElementParticleSystem
TreeElementParticleSystem(TreeElement &legacy_te, Object &object, ParticleSystem &psys)
Definition
tree_element_particle_system.cc:19
blender::ed::outliner::TreeElementParticleSystem::element_type
static constexpr eTreeStoreElemType element_type
Definition
tree_element_particle_system.hh:28
blender::ed::outliner::TreeElementParticleSystem::owner_id
static ID * owner_id(Object &object, ParticleSystem &psys)
Definition
tree_element_particle_system.cc:29
blender::ed::outliner::TreeElementParticleSystem::get_icon
std::optional< BIFIconID > get_icon() const override
Definition
tree_element_particle_system.hh:36
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_LINKED_PSYS
@ TSE_LINKED_PSYS
Definition
DNA_outliner_types.h:80
blender::ID
Definition
DNA_ID.h:415
blender::Object
Definition
DNA_object_types.h:466
blender::ParticleSystem
Definition
DNA_particle_types.h:686
blender::ed::outliner::TreeElement
Definition
outliner_intern.hh:111
tree_element.hh
Generated on
for Blender by
doxygen
1.18.0