Blender
V5.3
source
blender
makesdna
DNA_nla_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 "
BLI_enum_flags.hh
"
12
13
#include "
DNA_listBase.h
"
14
15
namespace
blender
{
16
17
struct
Object
;
18
struct
bAction
;
19
21
enum
eActStrip_Mode
:
short
{
22
ACTSTRIPMODE_BLEND
= 0,
23
ACTSTRIPMODE_ADD
= 1,
24
};
25
27
enum
eActStrip_Flag
:
short
{
28
ACTSTRIP_SELECT
= (1 << 0),
29
ACTSTRIP_USESTRIDE
= (1 << 1),
30
/* Not implemented. Is not used anywhere */
31
/* ACTSTRIP_BLENDTONEXT = (1 << 2), */
/* UNUSED */
32
ACTSTRIP_HOLDLASTFRAME
= (1 << 3),
33
ACTSTRIP_ACTIVE
= (1 << 4),
34
ACTSTRIP_LOCK_ACTION
= (1 << 5),
35
ACTSTRIP_MUTE
= (1 << 6),
36
/* This has yet to be implemented. To indicate that a strip should be played backwards */
37
ACTSTRIP_REVERSE
= (1 << 7),
38
ACTSTRIP_AUTO_BLENDS
= (1 << 11),
39
};
40
ENUM_OPERATORS
(
eActStrip_Flag
)
41
42
43
struct
bActionModifier
{
44
struct
bActionModifier
*
next
=
nullptr
, *
prev
=
nullptr
;
45
short
type
= 0,
flag
= 0;
46
char
channel
[32] =
""
;
47
48
/* noise modifier */
49
float
noisesize
= 0,
turbul
= 0;
50
short
channels
= 0;
51
52
/* path deform modifier */
53
short
no_rot_axis
= 0;
54
struct
Object
*
ob
=
nullptr
;
55
};
56
57
// /* NLA-Modifier Types (UNUSED) */
58
// enum {
59
// ACTSTRIP_MOD_DEFORM = 0,
60
// ACTSTRIP_MOD_NOISE = 1,
61
// };
62
63
struct
bActionStrip
{
64
struct
bActionStrip
*
next
=
nullptr
, *
prev
=
nullptr
;
65
eActStrip_Flag
flag
= {};
66
eActStrip_Mode
mode
=
ACTSTRIPMODE_BLEND
;
68
short
stride_axis
= 0;
70
short
curmod
= 0;
71
73
struct
bAction
*
act
=
nullptr
;
75
struct
Object
*
object
=
nullptr
;
77
float
start
= 0,
end
= 0;
79
float
actstart
= 0,
actend
= 0;
81
float
actoffs
= 0;
83
float
stridelen
= 0;
85
float
repeat
= 0;
87
float
scale
= 0;
88
90
float
blendin
= 0,
blendout
= 0;
91
93
char
stridechannel
[32] =
""
;
95
char
offs_bone
[32] =
""
;
96
98
ListBaseT<bActionModifier>
modifiers
= {
nullptr
,
nullptr
};
99
};
100
101
}
// namespace blender
BLI_enum_flags.hh
ENUM_OPERATORS
#define ENUM_OPERATORS(_enum_type)
Definition
BLI_enum_flags.hh:35
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::eActStrip_Mode
eActStrip_Mode
Definition
DNA_nla_types.h:21
blender::ACTSTRIPMODE_ADD
@ ACTSTRIPMODE_ADD
Definition
DNA_nla_types.h:23
blender::ACTSTRIPMODE_BLEND
@ ACTSTRIPMODE_BLEND
Definition
DNA_nla_types.h:22
blender::eActStrip_Flag
eActStrip_Flag
Definition
DNA_nla_types.h:27
blender::ACTSTRIP_LOCK_ACTION
@ ACTSTRIP_LOCK_ACTION
Definition
DNA_nla_types.h:34
blender::ACTSTRIP_SELECT
@ ACTSTRIP_SELECT
Definition
DNA_nla_types.h:28
blender::ACTSTRIP_USESTRIDE
@ ACTSTRIP_USESTRIDE
Definition
DNA_nla_types.h:29
blender::ACTSTRIP_REVERSE
@ ACTSTRIP_REVERSE
Definition
DNA_nla_types.h:37
blender::ACTSTRIP_MUTE
@ ACTSTRIP_MUTE
Definition
DNA_nla_types.h:35
blender::ACTSTRIP_ACTIVE
@ ACTSTRIP_ACTIVE
Definition
DNA_nla_types.h:33
blender::ACTSTRIP_AUTO_BLENDS
@ ACTSTRIP_AUTO_BLENDS
Definition
DNA_nla_types.h:38
blender::ACTSTRIP_HOLDLASTFRAME
@ ACTSTRIP_HOLDLASTFRAME
Definition
DNA_nla_types.h:32
blender::Object
Definition
DNA_object_types.h:466
blender::bActionModifier
Definition
DNA_nla_types.h:43
blender::bActionModifier::type
short type
Definition
DNA_nla_types.h:45
blender::bActionModifier::turbul
float turbul
Definition
DNA_nla_types.h:49
blender::bActionModifier::channel
char channel[32]
Definition
DNA_nla_types.h:46
blender::bActionModifier::next
struct bActionModifier * next
Definition
DNA_nla_types.h:44
blender::bActionModifier::ob
struct Object * ob
Definition
DNA_nla_types.h:54
blender::bActionModifier::channels
short channels
Definition
DNA_nla_types.h:50
blender::bActionModifier::noisesize
float noisesize
Definition
DNA_nla_types.h:49
blender::bActionModifier::no_rot_axis
short no_rot_axis
Definition
DNA_nla_types.h:53
blender::bActionModifier::flag
short flag
Definition
DNA_nla_types.h:45
blender::bActionModifier::prev
struct bActionModifier * prev
Definition
DNA_nla_types.h:44
blender::bActionStrip
Definition
DNA_nla_types.h:63
blender::bActionStrip::blendin
float blendin
Definition
DNA_nla_types.h:90
blender::bActionStrip::next
struct bActionStrip * next
Definition
DNA_nla_types.h:64
blender::bActionStrip::act
struct bAction * act
Definition
DNA_nla_types.h:73
blender::bActionStrip::stride_axis
short stride_axis
Definition
DNA_nla_types.h:68
blender::bActionStrip::modifiers
ListBaseT< bActionModifier > modifiers
Definition
DNA_nla_types.h:98
blender::bActionStrip::actend
float actend
Definition
DNA_nla_types.h:79
blender::bActionStrip::blendout
float blendout
Definition
DNA_nla_types.h:90
blender::bActionStrip::offs_bone
char offs_bone[32]
Definition
DNA_nla_types.h:95
blender::bActionStrip::actstart
float actstart
Definition
DNA_nla_types.h:79
blender::bActionStrip::stridelen
float stridelen
Definition
DNA_nla_types.h:83
blender::bActionStrip::scale
float scale
Definition
DNA_nla_types.h:87
blender::bActionStrip::curmod
short curmod
Definition
DNA_nla_types.h:70
blender::bActionStrip::repeat
float repeat
Definition
DNA_nla_types.h:85
blender::bActionStrip::end
float end
Definition
DNA_nla_types.h:77
blender::bActionStrip::mode
eActStrip_Mode mode
Definition
DNA_nla_types.h:66
blender::bActionStrip::start
float start
Definition
DNA_nla_types.h:77
blender::bActionStrip::actoffs
float actoffs
Definition
DNA_nla_types.h:81
blender::bActionStrip::prev
struct bActionStrip * prev
Definition
DNA_nla_types.h:64
blender::bActionStrip::stridechannel
char stridechannel[32]
Definition
DNA_nla_types.h:93
blender::bActionStrip::flag
eActStrip_Flag flag
Definition
DNA_nla_types.h:65
blender::bAction
Definition
DNA_action_types.h:1061
Generated on
for Blender by
doxygen
1.18.0