Blender  V3.3
DNA_nla_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
8 #pragma once
9 
10 #include "DNA_listBase.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 struct Ipo;
17 struct Object;
18 struct bAction;
19 
21 typedef struct bActionModifier {
23  short type, flag;
24  char channel[32];
25 
26  /* noise modifier */
27  float noisesize, turbul;
28  short channels;
29 
30  /* path deform modifier */
31  short no_rot_axis;
32  struct Object *ob;
34 
35 /* NLA-Modifier Types (UNUSED) */
36 // #define ACTSTRIP_MOD_DEFORM 0
37 // #define ACTSTRIP_MOD_NOISE 1
38 
39 typedef struct bActionStrip {
40  struct bActionStrip *next, *prev;
41  short flag, mode;
43  short stride_axis;
45  short curmod;
46 
48  struct Ipo *ipo;
50  struct bAction *act;
52  struct Object *object;
54  float start, end;
56  float actstart, actend;
58  float actoffs;
60  float stridelen;
62  float repeat;
64  float scale;
65 
67  float blendin, blendout;
68 
70  char stridechannel[32];
72  char offs_bone[32];
73 
77 
78 /* strip->mode (these defines aren't really used, but are here for reference) */
79 #define ACTSTRIPMODE_BLEND 0
80 #define ACTSTRIPMODE_ADD 1
81 
83 typedef enum eActStrip_Flag {
84  ACTSTRIP_SELECT = (1 << 0),
85  ACTSTRIP_USESTRIDE = (1 << 1),
86  /* Not implemented. Is not used anywhere */
87  /* ACTSTRIP_BLENDTONEXT = (1 << 2), */ /* UNUSED */
89  ACTSTRIP_ACTIVE = (1 << 4),
91  ACTSTRIP_MUTE = (1 << 6),
92  /* This has yet to be implemented. To indicate that a strip should be played backwards */
93  ACTSTRIP_REVERSE = (1 << 7),
94  ACTSTRIP_AUTO_BLENDS = (1 << 11),
96 
97 #ifdef __cplusplus
98 }
99 #endif
These structs are the foundation for all linked lists in the library system.
struct bActionModifier bActionModifier
struct bActionStrip bActionStrip
eActStrip_Flag
Definition: DNA_nla_types.h:83
@ ACTSTRIP_ACTIVE
Definition: DNA_nla_types.h:89
@ ACTSTRIP_MUTE
Definition: DNA_nla_types.h:91
@ ACTSTRIP_SELECT
Definition: DNA_nla_types.h:84
@ ACTSTRIP_REVERSE
Definition: DNA_nla_types.h:93
@ ACTSTRIP_LOCK_ACTION
Definition: DNA_nla_types.h:90
@ ACTSTRIP_HOLDLASTFRAME
Definition: DNA_nla_types.h:88
@ ACTSTRIP_AUTO_BLENDS
Definition: DNA_nla_types.h:94
@ ACTSTRIP_USESTRIDE
Definition: DNA_nla_types.h:85
struct Object * ob
Definition: DNA_nla_types.h:32
struct bActionModifier * next
Definition: DNA_nla_types.h:22
struct bActionModifier * prev
Definition: DNA_nla_types.h:22
char channel[32]
Definition: DNA_nla_types.h:24
struct Object * object
Definition: DNA_nla_types.h:52
struct Ipo * ipo
Definition: DNA_nla_types.h:48
struct bAction * act
Definition: DNA_nla_types.h:50
char stridechannel[32]
Definition: DNA_nla_types.h:70
struct bActionStrip * next
Definition: DNA_nla_types.h:40
char offs_bone[32]
Definition: DNA_nla_types.h:72
ListBase modifiers
Definition: DNA_nla_types.h:75
short stride_axis
Definition: DNA_nla_types.h:43
struct bActionStrip * prev
Definition: DNA_nla_types.h:40