Blender
V5.3
source
blender
makesdna
DNA_meta_types.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
DNA_ID.h
"
12
#include "
DNA_listBase.h
"
13
14
#include "
BLI_enum_flags.hh
"
15
16
namespace
blender
{
17
18
struct
AnimData
;
19
struct
BoundBox
;
20
struct
Material
;
21
23
enum
eMetaBall_TexSpaceFlag
:
char
{
24
MB_TEXSPACE_FLAG_AUTO
= 1 << 0,
25
};
26
ENUM_OPERATORS
(
eMetaBall_TexSpaceFlag
)
27
28
29
enum
eMetaBall_Flag
:
char
{
30
MB_UPDATE_ALWAYS
= 0,
31
MB_UPDATE_HALFRES
= 1,
32
MB_UPDATE_FAST
= 2,
33
MB_UPDATE_NEVER
= 3,
34
};
35
37
enum
eMetaBall_Flag2
:
char
{
38
MB_DS_EXPAND
= 1 << 0,
39
};
40
ENUM_OPERATORS
(
eMetaBall_Flag2
)
41
42
43
enum
eMetaElem_Type
:
short
{
44
MB_BALL
= 0,
45
MB_TUBEX
= 1,
/* Deprecated. */
46
MB_TUBEY
= 2,
/* Deprecated. */
47
MB_TUBEZ
= 3,
/* Deprecated. */
48
MB_TUBE
= 4,
49
MB_PLANE
= 5,
50
MB_ELLIPSOID
= 6,
51
MB_CUBE
= 7,
52
};
53
54
#define MB_TYPE_SIZE_SQUARED(type) ((type) == MB_ELLIPSOID)
55
57
enum
eMetaElem_Flag
:
short
{
58
MB_SELECT
= (1 << 0),
59
MB_NEGATIVE
= 1 << 1,
60
MB_HIDE
= 1 << 3,
61
MB_SCALE_RAD
= 1 << 4,
62
};
63
ENUM_OPERATORS
(
eMetaElem_Flag
)
64
65
struct
MetaElem
{
66
struct
MetaElem
*
next
=
nullptr
, *
prev
=
nullptr
;
67
69
struct
BoundBox
*
bb
=
nullptr
;
70
71
eMetaElem_Type
type
=
MB_BALL
;
72
eMetaElem_Flag
flag
= {};
73
char
_pad
[4] = {};
75
float
x
= 0,
y
= 0,
z
= 0;
77
float
quat
[4] = {};
79
float
expx
= 0;
80
float
expy
= 0;
81
float
expz
= 0;
83
float
rad
= 0;
85
float
rad2
= 0;
87
float
s
= 0;
89
float
len
= 0;
90
92
float
*
mat
=
nullptr
, *
imat
=
nullptr
;
93
};
94
95
struct
MetaBall
{
96
#ifdef __cplusplus
98
static
constexpr
ID_Type
id_type =
ID_MB
;
99
#endif
100
101
ID
id
;
102
struct
AnimData
*
adt
=
nullptr
;
103
104
ListBaseT<MetaElem>
elems
= {
nullptr
,
nullptr
};
106
ListBaseT<MetaElem> *
editelems
=
nullptr
;
107
108
/* material of the mother ball will define the material used of all others */
109
struct
Material
**
mat
=
nullptr
;
110
112
eMetaBall_Flag
flag
=
MB_UPDATE_ALWAYS
;
113
eMetaBall_Flag2
flag2
= {};
114
short
totcol
= 0;
115
char
texspace_flag
=
MB_TEXSPACE_FLAG_AUTO
;
116
char
_pad
[2] = {};
117
122
char
needs_flush_to_id
= 0;
123
124
float
texspace_location
[3] = {};
125
float
texspace_size
[3] = {1, 1, 1};
126
128
float
wiresize
= 0.4f,
rendersize
= 0.2f;
129
130
/* bias elements to have an offset volume.
131
* mother ball changes will effect other objects thresholds,
132
* but these may also have their own thresh as an offset */
133
float
thresh
= 0.6f;
134
135
char
_pad0
[4] = {};
136
138
MetaElem
*
lastelem
=
nullptr
;
139
};
140
141
}
// namespace blender
BLI_enum_flags.hh
ENUM_OPERATORS
#define ENUM_OPERATORS(_enum_type)
Definition
BLI_enum_flags.hh:35
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::ID_Type
ID_Type
Definition
DNA_ID_enums.h:136
blender::ID_MB
@ ID_MB
Definition
DNA_ID_enums.h:142
blender::eMetaElem_Type
eMetaElem_Type
Definition
DNA_meta_types.h:43
blender::MB_BALL
@ MB_BALL
Definition
DNA_meta_types.h:44
blender::MB_TUBEY
@ MB_TUBEY
Definition
DNA_meta_types.h:46
blender::MB_TUBEZ
@ MB_TUBEZ
Definition
DNA_meta_types.h:47
blender::MB_CUBE
@ MB_CUBE
Definition
DNA_meta_types.h:51
blender::MB_TUBE
@ MB_TUBE
Definition
DNA_meta_types.h:48
blender::MB_PLANE
@ MB_PLANE
Definition
DNA_meta_types.h:49
blender::MB_ELLIPSOID
@ MB_ELLIPSOID
Definition
DNA_meta_types.h:50
blender::MB_TUBEX
@ MB_TUBEX
Definition
DNA_meta_types.h:45
blender::eMetaBall_Flag2
eMetaBall_Flag2
Definition
DNA_meta_types.h:37
blender::MB_DS_EXPAND
@ MB_DS_EXPAND
Definition
DNA_meta_types.h:38
blender::eMetaBall_Flag
eMetaBall_Flag
Definition
DNA_meta_types.h:29
blender::MB_UPDATE_FAST
@ MB_UPDATE_FAST
Definition
DNA_meta_types.h:32
blender::MB_UPDATE_NEVER
@ MB_UPDATE_NEVER
Definition
DNA_meta_types.h:33
blender::MB_UPDATE_HALFRES
@ MB_UPDATE_HALFRES
Definition
DNA_meta_types.h:31
blender::MB_UPDATE_ALWAYS
@ MB_UPDATE_ALWAYS
Definition
DNA_meta_types.h:30
blender::eMetaElem_Flag
eMetaElem_Flag
Definition
DNA_meta_types.h:57
blender::MB_SELECT
@ MB_SELECT
Definition
DNA_meta_types.h:58
blender::MB_NEGATIVE
@ MB_NEGATIVE
Definition
DNA_meta_types.h:59
blender::MB_HIDE
@ MB_HIDE
Definition
DNA_meta_types.h:60
blender::MB_SCALE_RAD
@ MB_SCALE_RAD
Definition
DNA_meta_types.h:61
blender::eMetaBall_TexSpaceFlag
eMetaBall_TexSpaceFlag
Definition
DNA_meta_types.h:23
blender::MB_TEXSPACE_FLAG_AUTO
@ MB_TEXSPACE_FLAG_AUTO
Definition
DNA_meta_types.h:24
blender::AnimData
Definition
DNA_anim_types.h:706
blender::BoundBox
Definition
DNA_object_types.h:375
blender::ID
Definition
DNA_ID.h:415
blender::MetaBall
Definition
DNA_meta_types.h:95
blender::MetaBall::needs_flush_to_id
char needs_flush_to_id
Definition
DNA_meta_types.h:122
blender::MetaBall::rendersize
float rendersize
Definition
DNA_meta_types.h:128
blender::MetaBall::flag2
eMetaBall_Flag2 flag2
Definition
DNA_meta_types.h:113
blender::MetaBall::lastelem
MetaElem * lastelem
Definition
DNA_meta_types.h:138
blender::MetaBall::elems
ListBaseT< MetaElem > elems
Definition
DNA_meta_types.h:104
blender::MetaBall::texspace_size
float texspace_size[3]
Definition
DNA_meta_types.h:125
blender::MetaBall::_pad0
char _pad0[4]
Definition
DNA_meta_types.h:135
blender::MetaBall::editelems
ListBaseT< MetaElem > * editelems
Definition
DNA_meta_types.h:106
blender::MetaBall::wiresize
float wiresize
Definition
DNA_meta_types.h:128
blender::MetaBall::adt
struct AnimData * adt
Definition
DNA_meta_types.h:102
blender::MetaBall::totcol
short totcol
Definition
DNA_meta_types.h:114
blender::MetaBall::id
ID id
Definition
DNA_meta_types.h:101
blender::MetaBall::_pad
char _pad[2]
Definition
DNA_meta_types.h:116
blender::MetaBall::mat
struct Material ** mat
Definition
DNA_meta_types.h:109
blender::MetaBall::texspace_location
float texspace_location[3]
Definition
DNA_meta_types.h:124
blender::MetaBall::flag
eMetaBall_Flag flag
Definition
DNA_meta_types.h:112
blender::MetaBall::thresh
float thresh
Definition
DNA_meta_types.h:133
blender::MetaBall::texspace_flag
char texspace_flag
Definition
DNA_meta_types.h:115
blender::MetaElem
Definition
DNA_meta_types.h:65
blender::MetaElem::rad2
float rad2
Definition
DNA_meta_types.h:85
blender::MetaElem::prev
struct MetaElem * prev
Definition
DNA_meta_types.h:66
blender::MetaElem::x
float x
Definition
DNA_meta_types.h:75
blender::MetaElem::z
float z
Definition
DNA_meta_types.h:75
blender::MetaElem::len
float len
Definition
DNA_meta_types.h:89
blender::MetaElem::s
float s
Definition
DNA_meta_types.h:87
blender::MetaElem::rad
float rad
Definition
DNA_meta_types.h:83
blender::MetaElem::_pad
char _pad[4]
Definition
DNA_meta_types.h:73
blender::MetaElem::quat
float quat[4]
Definition
DNA_meta_types.h:77
blender::MetaElem::type
eMetaElem_Type type
Definition
DNA_meta_types.h:71
blender::MetaElem::next
struct MetaElem * next
Definition
DNA_meta_types.h:66
blender::MetaElem::bb
struct BoundBox * bb
Definition
DNA_meta_types.h:69
blender::MetaElem::mat
float * mat
Definition
DNA_meta_types.h:92
blender::MetaElem::expz
float expz
Definition
DNA_meta_types.h:81
blender::MetaElem::flag
eMetaElem_Flag flag
Definition
DNA_meta_types.h:72
blender::MetaElem::y
float y
Definition
DNA_meta_types.h:75
blender::MetaElem::expy
float expy
Definition
DNA_meta_types.h:80
blender::MetaElem::imat
float * imat
Definition
DNA_meta_types.h:92
blender::MetaElem::expx
float expx
Definition
DNA_meta_types.h:79
blender::eevee::Material
Definition
eevee_material.hh:328
Generated on
for Blender by
doxygen
1.18.0