Blender
V5.3
source
blender
makesdna
DNA_lattice_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_defs.h
"
13
#include "
DNA_key_types.h
"
14
15
#include "
BLI_enum_flags.hh
"
16
17
namespace
blender
{
18
19
struct
AnimData
;
20
struct
BPoint
;
21
struct
Key
;
22
struct
MDeformVert
;
23
24
namespace
draw
{
25
struct
LatticeBatchCache
;
26
}
27
29
enum
eLattice_Flag
:
short
{
30
LT_GRID
= 1 << 0,
31
LT_OUTSIDE
= 1 << 1,
32
33
LT_DS_EXPAND
= 1 << 2,
34
};
35
ENUM_OPERATORS
(
eLattice_Flag
)
36
37
#define LT_ACTBP_NONE -1
38
39
#
40
#
41
struct
EditLatt
{
42
DNA_DEFINE_CXX_METHODS
(
EditLatt
)
43
44
struct
Lattice
*
latt
=
nullptr
;
45
46
int
shapenr
= 0;
47
52
char
needs_flush_to_id
= 0;
53
};
54
55
struct
Lattice
{
56
#ifdef __cplusplus
57
DNA_DEFINE_CXX_METHODS
(
Lattice
)
59
static
constexpr
ID_Type
id_type =
ID_LT
;
60
#endif
61
62
ID
id
;
63
struct
AnimData
*
adt
=
nullptr
;
64
65
short
pntsu
= 0,
pntsv
= 0,
pntsw
= 0;
66
eLattice_Flag
flag
=
LT_GRID
;
67
short
opntsu
= 0,
opntsv
= 0,
opntsw
= 0;
68
char
_pad2
[3] = {};
69
/* KeyInterpolationType */
70
char
typeu
=
KEY_BSPLINE
,
typev
=
KEY_BSPLINE
,
typew
=
KEY_BSPLINE
;
72
int
actbp
=
LT_ACTBP_NONE
;
73
74
float
fu
= 0,
fv
= 0,
fw
= 0,
du
= 0,
dv
= 0,
dw
= 0;
75
76
struct
BPoint
*
def
=
nullptr
;
77
78
struct
Key
*
key
=
nullptr
;
79
80
struct
MDeformVert
*
dvert
=
nullptr
;
82
char
vgroup
[
/*MAX_VGROUP_NAME*/
64] =
""
;
84
ListBaseT<struct bDeformGroup>
vertex_group_names
= {
nullptr
,
nullptr
};
85
int
vertex_group_active_index
= 0;
86
87
char
_pad0
[4] = {};
88
89
struct
EditLatt
*
editlatt
=
nullptr
;
90
draw::LatticeBatchCache
*
batch_cache
=
nullptr
;
91
};
92
93
}
// 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_defs.h
DNA_DEFINE_CXX_METHODS
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition
DNA_defs.h:104
DNA_key_types.h
LT_ACTBP_NONE
#define LT_ACTBP_NONE
Definition
DNA_lattice_types.h:37
blender::draw
Definition
BKE_grease_pencil.hh:34
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::eLattice_Flag
eLattice_Flag
Definition
DNA_lattice_types.h:29
blender::LT_OUTSIDE
@ LT_OUTSIDE
Definition
DNA_lattice_types.h:31
blender::LT_GRID
@ LT_GRID
Definition
DNA_lattice_types.h:30
blender::LT_DS_EXPAND
@ LT_DS_EXPAND
Definition
DNA_lattice_types.h:33
blender::ID_Type
ID_Type
Definition
DNA_ID_enums.h:136
blender::ID_LT
@ ID_LT
Definition
DNA_ID_enums.h:146
blender::KEY_BSPLINE
@ KEY_BSPLINE
Definition
DNA_key_types.h:43
blender::AnimData
Definition
DNA_anim_types.h:706
blender::BPoint
Definition
DNA_curve_types.h:129
blender::EditLatt
Definition
DNA_lattice_types.h:41
blender::EditLatt::latt
struct Lattice * latt
Definition
DNA_lattice_types.h:44
blender::EditLatt::shapenr
int shapenr
Definition
DNA_lattice_types.h:46
blender::EditLatt::needs_flush_to_id
char needs_flush_to_id
Definition
DNA_lattice_types.h:52
blender::ID
Definition
DNA_ID.h:415
blender::Key
Definition
DNA_key_types.h:108
blender::Lattice
Definition
DNA_lattice_types.h:55
blender::Lattice::opntsu
short opntsu
Definition
DNA_lattice_types.h:67
blender::Lattice::dw
float dw
Definition
DNA_lattice_types.h:74
blender::Lattice::fu
float fu
Definition
DNA_lattice_types.h:74
blender::Lattice::typeu
char typeu
Definition
DNA_lattice_types.h:70
blender::Lattice::editlatt
struct EditLatt * editlatt
Definition
DNA_lattice_types.h:89
blender::Lattice::_pad0
char _pad0[4]
Definition
DNA_lattice_types.h:87
blender::Lattice::typew
char typew
Definition
DNA_lattice_types.h:70
blender::Lattice::batch_cache
draw::LatticeBatchCache * batch_cache
Definition
DNA_lattice_types.h:90
blender::Lattice::flag
eLattice_Flag flag
Definition
DNA_lattice_types.h:66
blender::Lattice::vgroup
char vgroup[64]
Definition
DNA_lattice_types.h:82
blender::Lattice::actbp
int actbp
Definition
DNA_lattice_types.h:72
blender::Lattice::dv
float dv
Definition
DNA_lattice_types.h:74
blender::Lattice::key
struct Key * key
Definition
DNA_lattice_types.h:78
blender::Lattice::opntsw
short opntsw
Definition
DNA_lattice_types.h:67
blender::Lattice::pntsv
short pntsv
Definition
DNA_lattice_types.h:65
blender::Lattice::fv
float fv
Definition
DNA_lattice_types.h:74
blender::Lattice::opntsv
short opntsv
Definition
DNA_lattice_types.h:67
blender::Lattice::du
float du
Definition
DNA_lattice_types.h:74
blender::Lattice::fw
float fw
Definition
DNA_lattice_types.h:74
blender::Lattice::dvert
struct MDeformVert * dvert
Definition
DNA_lattice_types.h:80
blender::Lattice::pntsw
short pntsw
Definition
DNA_lattice_types.h:65
blender::Lattice::vertex_group_active_index
int vertex_group_active_index
Definition
DNA_lattice_types.h:85
blender::Lattice::typev
char typev
Definition
DNA_lattice_types.h:70
blender::Lattice::id
ID id
Definition
DNA_lattice_types.h:62
blender::Lattice::pntsu
short pntsu
Definition
DNA_lattice_types.h:65
blender::Lattice::_pad2
char _pad2[3]
Definition
DNA_lattice_types.h:68
blender::Lattice::adt
struct AnimData * adt
Definition
DNA_lattice_types.h:63
blender::Lattice::vertex_group_names
ListBaseT< struct bDeformGroup > vertex_group_names
Definition
DNA_lattice_types.h:84
blender::Lattice::def
struct BPoint * def
Definition
DNA_lattice_types.h:76
blender::MDeformVert
Definition
DNA_meshdata_types.h:172
blender::draw::LatticeBatchCache
Definition
draw_cache_impl_lattice.cc:194
Generated on
for Blender by
doxygen
1.18.0