Blender V2.61 - r43446
Functions | Variables

nla_edit.c File Reference

#include <string.h>
#include <stdio.h>
#include <math.h>
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_action.h"
#include "BKE_fcurve.h"
#include "BKE_nla.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_screen.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_markers.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "nla_intern.h"
#include "nla_private.h"

Go to the source code of this file.

Functions

void ED_nla_postop_refresh (bAnimContext *ac)
static int nlaedit_enable_tweakmode_exec (bContext *C, wmOperator *op)
void NLA_OT_tweakmode_enter (wmOperatorType *ot)
static int nlaedit_disable_tweakmode_exec (bContext *C, wmOperator *op)
void NLA_OT_tweakmode_exit (wmOperatorType *ot)
static void get_nlastrip_extents (bAnimContext *ac, float *min, float *max, const short onlySel)
static int nlaedit_viewall (bContext *C, const short onlySel)
static int nlaedit_viewall_exec (bContext *C, wmOperator *UNUSED(op))
static int nlaedit_viewsel_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_view_all (wmOperatorType *ot)
void NLA_OT_view_selected (wmOperatorType *ot)
static int nlaedit_add_actionclip_exec (bContext *C, wmOperator *op)
void NLA_OT_actionclip_add (wmOperatorType *ot)
static int nlaedit_add_transition_exec (bContext *C, wmOperator *op)
void NLA_OT_transition_add (wmOperatorType *ot)
static int nlaedit_add_sound_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_soundclip_add (wmOperatorType *ot)
static int nlaedit_add_meta_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_meta_add (wmOperatorType *ot)
static int nlaedit_remove_meta_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_meta_remove (wmOperatorType *ot)
static int nlaedit_duplicate_exec (bContext *C, wmOperator *UNUSED(op))
static int nlaedit_duplicate_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void NLA_OT_duplicate (wmOperatorType *ot)
static int nlaedit_delete_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_delete (wmOperatorType *ot)
static void nlaedit_split_strip_actclip (AnimData *adt, NlaTrack *nlt, NlaStrip *strip, float cfra)
static void nlaedit_split_strip_meta (NlaTrack *nlt, NlaStrip *strip)
static int nlaedit_split_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_split (wmOperatorType *ot)
static int nlaedit_bake_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_bake (wmOperatorType *ot)
static int nlaedit_toggle_mute_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_mute_toggle (wmOperatorType *ot)
static int nlaedit_swap_exec (bContext *C, wmOperator *op)
void NLA_OT_swap (wmOperatorType *ot)
static int nlaedit_move_up_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_move_up (wmOperatorType *ot)
static int nlaedit_move_down_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_move_down (wmOperatorType *ot)
static int nlaedit_sync_actlen_exec (bContext *C, wmOperator *op)
void NLA_OT_action_sync_length (wmOperatorType *ot)
static short bezt_apply_nlamapping (KeyframeEditData *ked, BezTriple *bezt)
static int nlaedit_apply_scale_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_apply_scale (wmOperatorType *ot)
static int nlaedit_clear_scale_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_clear_scale (wmOperatorType *ot)
static int nlaedit_snap_exec (bContext *C, wmOperator *op)
void NLA_OT_snap (wmOperatorType *ot)
static int nla_fmodifier_add_invoke (bContext *C, wmOperator *UNUSED(op), wmEvent *UNUSED(event))
static int nla_fmodifier_add_exec (bContext *C, wmOperator *op)
void NLA_OT_fmodifier_add (wmOperatorType *ot)
static int nla_fmodifier_copy_exec (bContext *C, wmOperator *op)
void NLA_OT_fmodifier_copy (wmOperatorType *ot)
static int nla_fmodifier_paste_exec (bContext *C, wmOperator *op)
void NLA_OT_fmodifier_paste (wmOperatorType *ot)

Variables

static EnumPropertyItem prop_nlaedit_snap_types []

Detailed Description

Definition in file nla_edit.c.


Function Documentation

static short bezt_apply_nlamapping ( KeyframeEditData ked,
BezTriple bezt 
) [static]
void ED_nla_postop_refresh ( bAnimContext ac)
static void get_nlastrip_extents ( bAnimContext ac,
float *  min,
float *  max,
const short  onlySel 
) [static]
static int nla_fmodifier_add_exec ( bContext C,
wmOperator op 
) [static]
static int nla_fmodifier_add_invoke ( bContext C,
wmOperator UNUSEDop,
wmEvent UNUSEDevent 
) [static]
static int nla_fmodifier_copy_exec ( bContext C,
wmOperator op 
) [static]
static int nla_fmodifier_paste_exec ( bContext C,
wmOperator op 
) [static]
void NLA_OT_action_sync_length ( wmOperatorType ot)
void NLA_OT_actionclip_add ( wmOperatorType ot)
void NLA_OT_apply_scale ( wmOperatorType ot)
void NLA_OT_bake ( wmOperatorType ot)
void NLA_OT_clear_scale ( wmOperatorType ot)
void NLA_OT_delete ( wmOperatorType ot)
void NLA_OT_duplicate ( wmOperatorType ot)
void NLA_OT_fmodifier_add ( wmOperatorType ot)
void NLA_OT_fmodifier_copy ( wmOperatorType ot)
void NLA_OT_fmodifier_paste ( wmOperatorType ot)
void NLA_OT_meta_add ( wmOperatorType ot)
void NLA_OT_meta_remove ( wmOperatorType ot)
void NLA_OT_move_down ( wmOperatorType ot)
void NLA_OT_move_up ( wmOperatorType ot)
void NLA_OT_mute_toggle ( wmOperatorType ot)
void NLA_OT_snap ( wmOperatorType ot)
void NLA_OT_soundclip_add ( wmOperatorType ot)
void NLA_OT_split ( wmOperatorType ot)
void NLA_OT_swap ( wmOperatorType ot)
void NLA_OT_transition_add ( wmOperatorType ot)
void NLA_OT_tweakmode_enter ( wmOperatorType ot)
void NLA_OT_tweakmode_exit ( wmOperatorType ot)
void NLA_OT_view_all ( wmOperatorType ot)
void NLA_OT_view_selected ( wmOperatorType ot)
static int nlaedit_add_actionclip_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_add_meta_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_add_sound_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_add_transition_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_apply_scale_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_bake_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_clear_scale_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_delete_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_disable_tweakmode_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_duplicate_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_duplicate_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int nlaedit_enable_tweakmode_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_move_down_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_move_up_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_remove_meta_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_snap_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_split_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void nlaedit_split_strip_actclip ( AnimData adt,
NlaTrack nlt,
NlaStrip strip,
float  cfra 
) [static]
static void nlaedit_split_strip_meta ( NlaTrack nlt,
NlaStrip strip 
) [static]

Definition at line 1055 of file nla_edit.c.

References BKE_nlastrips_clear_metastrip(), and NlaTrack::strips.

Referenced by nlaedit_split_exec().

static int nlaedit_swap_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_sync_actlen_exec ( bContext C,
wmOperator op 
) [static]
static int nlaedit_toggle_mute_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int nlaedit_viewall ( bContext C,
const short  onlySel 
) [static]
static int nlaedit_viewall_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 326 of file nla_edit.c.

References FALSE, and nlaedit_viewall().

Referenced by NLA_OT_view_all().

static int nlaedit_viewsel_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 332 of file nla_edit.c.

References nlaedit_viewall(), and TRUE.

Referenced by NLA_OT_view_selected().


Variable Documentation

Initial value:
 {
    {NLAEDIT_SNAP_CFRA, "CFRA", 0, "Current frame", ""},
    {NLAEDIT_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""}, 
    {NLAEDIT_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""}, 
    {NLAEDIT_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 1799 of file nla_edit.c.