Blender V2.61 - r43446
Functions

nla.c File Reference

#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BLI_path_util.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_ghash.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "DNA_sound_types.h"
#include "DNA_speaker_types.h"
#include "BKE_action.h"
#include "BKE_fcurve.h"
#include "BKE_nla.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "RNA_access.h"
#include "nla_private.h"

Go to the source code of this file.

Functions

void free_nlastrip (ListBase *strips, NlaStrip *strip)
void free_nlatrack (ListBase *tracks, NlaTrack *nlt)
void free_nladata (ListBase *tracks)
NlaStripcopy_nlastrip (NlaStrip *strip)
NlaTrackcopy_nlatrack (NlaTrack *nlt)
void copy_nladata (ListBase *dst, ListBase *src)
NlaTrackadd_nlatrack (AnimData *adt, NlaTrack *prev)
NlaStripadd_nlastrip (bAction *act)
NlaStripadd_nlastrip_to_stack (AnimData *adt, bAction *act)
NlaStripadd_nla_soundstrip (Scene *scene, Speaker *speaker)
static float nlastrip_get_frame_actionclip (NlaStrip *strip, float cframe, short mode)
static float nlastrip_get_frame_transition (NlaStrip *strip, float cframe, short mode)
float nlastrip_get_frame (NlaStrip *strip, float cframe, short mode)
float BKE_nla_tweakedit_remap (AnimData *adt, float cframe, short mode)
short BKE_nlastrips_has_space (ListBase *strips, float start, float end)
void BKE_nlastrips_sort_strips (ListBase *strips)
short BKE_nlastrips_add_strip (ListBase *strips, NlaStrip *strip)
void BKE_nlastrips_make_metas (ListBase *strips, short temp)
void BKE_nlastrips_clear_metastrip (ListBase *strips, NlaStrip *strip)
void BKE_nlastrips_clear_metas (ListBase *strips, short onlySel, short onlyTemp)
short BKE_nlameta_add_strip (NlaStrip *mstrip, NlaStrip *strip)
void BKE_nlameta_flush_transforms (NlaStrip *mstrip)
NlaTrackBKE_nlatrack_find_active (ListBase *tracks)
void BKE_nlatrack_solo_toggle (AnimData *adt, NlaTrack *nlt)
void BKE_nlatrack_set_active (ListBase *tracks, NlaTrack *nlt_a)
short BKE_nlatrack_has_space (NlaTrack *nlt, float start, float end)
void BKE_nlatrack_sort_strips (NlaTrack *nlt)
short BKE_nlatrack_add_strip (NlaTrack *nlt, NlaStrip *strip)
short BKE_nlatrack_get_bounds (NlaTrack *nlt, float bounds[2])
NlaStripBKE_nlastrip_find_active (NlaTrack *nlt)
void BKE_nlastrip_set_active (AnimData *adt, NlaStrip *strip)
short BKE_nlastrip_within_bounds (NlaStrip *strip, float min, float max)
void BKE_nlastrip_recalculate_bounds (NlaStrip *strip)
static short nlastrip_is_first (AnimData *adt, NlaStrip *strip)
short BKE_nlatrack_has_animated_strips (NlaTrack *nlt)
short BKE_nlatracks_have_animated_strips (ListBase *tracks)
void BKE_nlastrip_validate_fcurves (NlaStrip *strip)
static int nla_editbone_name_check (void *arg, const char *name)
void BKE_nlastrip_validate_name (AnimData *adt, NlaStrip *strip)
static void nlastrip_get_endpoint_overlaps (NlaStrip *strip, NlaTrack *track, float **start, float **end)
static void BKE_nlastrip_validate_autoblends (NlaTrack *nlt, NlaStrip *nls)
void BKE_nla_validate_state (AnimData *adt)
void BKE_nla_action_pushdown (AnimData *adt)
short BKE_nla_tweakmode_enter (AnimData *adt)
void BKE_nla_tweakmode_exit (AnimData *adt)
static void UNUSED_FUNCTION() BKE_nla_bake (Scene *scene, ID *UNUSED(id), AnimData *adt, int UNUSED(flag))

Detailed Description

Definition in file nla.c.


Function Documentation

NlaStrip* add_nla_soundstrip ( Scene scene,
Speaker speaker 
) [read]
NlaStrip* add_nlastrip ( bAction act) [read]
NlaStrip* add_nlastrip_to_stack ( AnimData adt,
bAction act 
) [read]
NlaTrack* add_nlatrack ( AnimData adt,
NlaTrack prev 
) [read]
void BKE_nla_action_pushdown ( AnimData adt)
static void UNUSED_FUNCTION() BKE_nla_bake ( Scene scene,
ID UNUSEDid,
AnimData adt,
int   UNUSEDflag 
) [static]

Definition at line 1630 of file nla.c.

References BKE_nla_action_pushdown(), ELEM3, and NULL.

float BKE_nla_tweakedit_remap ( AnimData adt,
float  cframe,
short  mode 
)
short BKE_nla_tweakmode_enter ( AnimData adt)
void BKE_nla_tweakmode_exit ( AnimData adt)
void BKE_nla_validate_state ( AnimData adt)
short BKE_nlameta_add_strip ( NlaStrip mstrip,
NlaStrip strip 
)
void BKE_nlameta_flush_transforms ( NlaStrip mstrip)
NlaStrip* BKE_nlastrip_find_active ( NlaTrack nlt) [read]
void BKE_nlastrip_recalculate_bounds ( NlaStrip strip)
void BKE_nlastrip_set_active ( AnimData adt,
NlaStrip strip 
)
static void BKE_nlastrip_validate_autoblends ( NlaTrack nlt,
NlaStrip nls 
) [static]
void BKE_nlastrip_validate_fcurves ( NlaStrip strip)
void BKE_nlastrip_validate_name ( AnimData adt,
NlaStrip strip 
)
short BKE_nlastrip_within_bounds ( NlaStrip strip,
float  min,
float  max 
)
short BKE_nlastrips_add_strip ( ListBase strips,
NlaStrip strip 
)
void BKE_nlastrips_clear_metas ( ListBase strips,
short  onlySel,
short  onlyTemp 
)
void BKE_nlastrips_clear_metastrip ( ListBase strips,
NlaStrip strip 
)
short BKE_nlastrips_has_space ( ListBase strips,
float  start,
float  end 
)
void BKE_nlastrips_make_metas ( ListBase strips,
short  temp 
)
void BKE_nlastrips_sort_strips ( ListBase strips)
short BKE_nlatrack_add_strip ( NlaTrack nlt,
NlaStrip strip 
)
NlaTrack* BKE_nlatrack_find_active ( ListBase tracks) [read]

Definition at line 898 of file nla.c.

References ELEM, ListBase::first, NlaTrack::flag, NlaTrack::next, NLATRACK_ACTIVE, and NULL.

Referenced by BKE_nla_tweakedit_remap().

short BKE_nlatrack_get_bounds ( NlaTrack nlt,
float  bounds[2] 
)
short BKE_nlatrack_has_animated_strips ( NlaTrack nlt)
short BKE_nlatrack_has_space ( NlaTrack nlt,
float  start,
float  end 
)
void BKE_nlatrack_set_active ( ListBase tracks,
NlaTrack nlt_a 
)

Definition at line 951 of file nla.c.

References ELEM, ListBase::first, NlaTrack::flag, NlaTrack::next, NLATRACK_ACTIVE, and NULL.

Referenced by add_nlatrack().

void BKE_nlatrack_solo_toggle ( AnimData adt,
NlaTrack nlt 
)
void BKE_nlatrack_sort_strips ( NlaTrack nlt)

Definition at line 991 of file nla.c.

References BKE_nlastrips_sort_strips(), ELEM, ListBase::first, NULL, and NlaTrack::strips.

Referenced by special_aftertrans_update().

short BKE_nlatracks_have_animated_strips ( ListBase tracks)

Definition at line 1194 of file nla.c.

References BKE_nlatrack_has_animated_strips(), ELEM, ListBase::first, NlaTrack::next, and NULL.

void copy_nladata ( ListBase dst,
ListBase src 
)

Definition at line 219 of file nla.c.

References BLI_addtail(), copy_nlatrack(), ELEM, ListBase::first, ListBase::last, NlaTrack::next, and NULL.

Referenced by BKE_copy_animdata().

NlaStrip* copy_nlastrip ( NlaStrip strip) [read]
NlaTrack* copy_nlatrack ( NlaTrack nlt) [read]
void free_nladata ( ListBase tracks)

Definition at line 138 of file nla.c.

References ELEM, ListBase::first, free_nlatrack(), ListBase::last, NlaTrack::next, and NULL.

Referenced by BKE_free_animdata().

void free_nlastrip ( ListBase strips,
NlaStrip strip 
)
void free_nlatrack ( ListBase tracks,
NlaTrack nlt 
)
static int nla_editbone_name_check ( void *  arg,
const char *  name 
) [static]

Definition at line 1266 of file nla.c.

References BLI_ghash_haskey().

Referenced by BKE_nlastrip_validate_name().

static void nlastrip_get_endpoint_overlaps ( NlaStrip strip,
NlaTrack track,
float **  start,
float **  end 
) [static]
float nlastrip_get_frame ( NlaStrip strip,
float  cframe,
short  mode 
)
static float nlastrip_get_frame_actionclip ( NlaStrip strip,
float  cframe,
short  mode 
) [static]
static float nlastrip_get_frame_transition ( NlaStrip strip,
float  cframe,
short  mode 
) [static]
static short nlastrip_is_first ( AnimData adt,
NlaStrip strip 
) [static]