Blender V2.61 - r43446
Defines | Functions | Variables

action_edit.c File Reference

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "BKE_action.h"
#include "BKE_fcurve.h"
#include "BKE_nla.h"
#include "BKE_context.h"
#include "BKE_report.h"
#include "UI_view2d.h"
#include "ED_anim_api.h"
#include "ED_gpencil.h"
#include "ED_keyframing.h"
#include "ED_keyframes_edit.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_markers.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "action_intern.h"

Go to the source code of this file.

Defines

#define MAKE_CYCLIC_EXPO   -1
#define CLEAR_CYCLIC_EXPO   -2

Functions

static int act_new_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_new (wmOperatorType *ot)
static int act_markers_make_local_poll (bContext *C)
static int act_markers_make_local_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_markers_make_local (wmOperatorType *ot)
static void get_keyframe_extents (bAnimContext *ac, float *min, float *max, const short onlySel)
static int actkeys_previewrange_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_previewrange_set (wmOperatorType *ot)
static int actkeys_viewall (bContext *C, const short onlySel)
static int actkeys_viewall_exec (bContext *C, wmOperator *UNUSED(op))
static int actkeys_viewsel_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_view_all (wmOperatorType *ot)
void ACTION_OT_view_selected (wmOperatorType *ot)
static short copy_action_keys (bAnimContext *ac)
static short paste_action_keys (bAnimContext *ac, const eKeyPasteOffset offset_mode, const eKeyMergeMode merge_mode)
static int actkeys_copy_exec (bContext *C, wmOperator *op)
void ACTION_OT_copy (wmOperatorType *ot)
static int actkeys_paste_exec (bContext *C, wmOperator *op)
void ACTION_OT_paste (wmOperatorType *ot)
static void insert_action_keys (bAnimContext *ac, short mode)
static int actkeys_insertkey_exec (bContext *C, wmOperator *op)
void ACTION_OT_keyframe_insert (wmOperatorType *ot)
static void duplicate_action_keys (bAnimContext *ac)
static int actkeys_duplicate_exec (bContext *C, wmOperator *UNUSED(op))
static int actkeys_duplicate_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void ACTION_OT_duplicate (wmOperatorType *ot)
static void delete_action_keys (bAnimContext *ac)
static int actkeys_delete_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_delete (wmOperatorType *ot)
static void clean_action_keys (bAnimContext *ac, float thresh)
static int actkeys_clean_exec (bContext *C, wmOperator *op)
void ACTION_OT_clean (wmOperatorType *ot)
static void sample_action_keys (bAnimContext *ac)
static int actkeys_sample_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_sample (wmOperatorType *ot)
static void setexpo_action_keys (bAnimContext *ac, short mode)
static int actkeys_expo_exec (bContext *C, wmOperator *op)
void ACTION_OT_extrapolation_type (wmOperatorType *ot)
static void setipo_action_keys (bAnimContext *ac, short mode)
static int actkeys_ipo_exec (bContext *C, wmOperator *op)
void ACTION_OT_interpolation_type (wmOperatorType *ot)
static void sethandles_action_keys (bAnimContext *ac, short mode)
static int actkeys_handletype_exec (bContext *C, wmOperator *op)
void ACTION_OT_handle_type (wmOperatorType *ot)
static void setkeytype_action_keys (bAnimContext *ac, short mode)
static int actkeys_keytype_exec (bContext *C, wmOperator *op)
void ACTION_OT_keyframe_type (wmOperatorType *ot)
static int actkeys_framejump_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_frame_jump (wmOperatorType *ot)
static void snap_action_keys (bAnimContext *ac, short mode)
static int actkeys_snap_exec (bContext *C, wmOperator *op)
void ACTION_OT_snap (wmOperatorType *ot)
static void mirror_action_keys (bAnimContext *ac, short mode)
static int actkeys_mirror_exec (bContext *C, wmOperator *op)
void ACTION_OT_mirror (wmOperatorType *ot)

Variables

static EnumPropertyItem prop_actkeys_insertkey_types []
static EnumPropertyItem prop_actkeys_expo_types []
static EnumPropertyItem prop_actkeys_snap_types []
static EnumPropertyItem prop_actkeys_mirror_types []

Detailed Description

Definition in file action_edit.c.


Define Documentation

#define CLEAR_CYCLIC_EXPO   -2

Definition at line 940 of file action_edit.c.

Referenced by setexpo_action_keys().

#define MAKE_CYCLIC_EXPO   -1

Definition at line 939 of file action_edit.c.

Referenced by setexpo_action_keys().


Function Documentation

static int act_markers_make_local_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int act_markers_make_local_poll ( bContext C) [static]
static int act_new_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
void ACTION_OT_clean ( wmOperatorType ot)
void ACTION_OT_copy ( wmOperatorType ot)
void ACTION_OT_delete ( wmOperatorType ot)
void ACTION_OT_duplicate ( wmOperatorType ot)
void ACTION_OT_extrapolation_type ( wmOperatorType ot)
void ACTION_OT_frame_jump ( wmOperatorType ot)
void ACTION_OT_handle_type ( wmOperatorType ot)
void ACTION_OT_interpolation_type ( wmOperatorType ot)
void ACTION_OT_keyframe_insert ( wmOperatorType ot)
void ACTION_OT_keyframe_type ( wmOperatorType ot)
void ACTION_OT_markers_make_local ( wmOperatorType ot)
void ACTION_OT_mirror ( wmOperatorType ot)
void ACTION_OT_new ( wmOperatorType ot)
void ACTION_OT_paste ( wmOperatorType ot)
void ACTION_OT_previewrange_set ( wmOperatorType ot)
void ACTION_OT_sample ( wmOperatorType ot)
void ACTION_OT_snap ( wmOperatorType ot)
void ACTION_OT_view_all ( wmOperatorType ot)
void ACTION_OT_view_selected ( wmOperatorType ot)
static int actkeys_clean_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_copy_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_delete_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int actkeys_duplicate_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int actkeys_duplicate_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]

Definition at line 708 of file action_edit.c.

References actkeys_duplicate_exec(), and OPERATOR_FINISHED.

Referenced by ACTION_OT_duplicate().

static int actkeys_expo_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_framejump_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int actkeys_handletype_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_insertkey_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_ipo_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_keytype_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_mirror_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_paste_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_previewrange_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int actkeys_sample_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int actkeys_snap_exec ( bContext C,
wmOperator op 
) [static]
static int actkeys_viewall ( bContext C,
const short  onlySel 
) [static]
static int actkeys_viewall_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 372 of file action_edit.c.

References actkeys_viewall(), and FALSE.

Referenced by ACTION_OT_view_all().

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

Definition at line 378 of file action_edit.c.

References actkeys_viewall(), and TRUE.

Referenced by ACTION_OT_view_selected().

static void clean_action_keys ( bAnimContext ac,
float  thresh 
) [static]
static short copy_action_keys ( bAnimContext ac) [static]
static void delete_action_keys ( bAnimContext ac) [static]
static void duplicate_action_keys ( bAnimContext ac) [static]
static void get_keyframe_extents ( bAnimContext ac,
float *  min,
float *  max,
const short  onlySel 
) [static]
static void insert_action_keys ( bAnimContext ac,
short  mode 
) [static]
static void mirror_action_keys ( bAnimContext ac,
short  mode 
) [static]
static short paste_action_keys ( bAnimContext ac,
const eKeyPasteOffset  offset_mode,
const eKeyMergeMode  merge_mode 
) [static]
static void sample_action_keys ( bAnimContext ac) [static]
static void setexpo_action_keys ( bAnimContext ac,
short  mode 
) [static]
static void sethandles_action_keys ( bAnimContext ac,
short  mode 
) [static]
static void setipo_action_keys ( bAnimContext ac,
short  mode 
) [static]
static void setkeytype_action_keys ( bAnimContext ac,
short  mode 
) [static]
static void snap_action_keys ( bAnimContext ac,
short  mode 
) [static]

Variable Documentation

Initial value:
 {
    {FCURVE_EXTRAPOLATE_CONSTANT, "CONSTANT", 0, "Constant Extrapolation", ""},
    {FCURVE_EXTRAPOLATE_LINEAR, "LINEAR", 0, "Linear Extrapolation", ""},
    
    {MAKE_CYCLIC_EXPO, "MAKE_CYCLIC", 0, "Make Cyclic (F-Modifier)", "Add Cycles F-Modifier if one doesn't exist already"},
    {CLEAR_CYCLIC_EXPO, "CLEAR_CYCLIC", 0, "Clear Cyclic (F-Modifier)", "Remove Cycles F-Modifier if not needed anymore"},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 943 of file action_edit.c.

Initial value:
 {
    {1, "ALL", 0, "All Channels", ""},
    {2, "SEL", 0, "Only Selected Channels", ""},
    {3, "GROUP", 0, "In Active Group", ""}, 
    {0, NULL, 0, NULL, NULL}
}

Definition at line 561 of file action_edit.c.

Initial value:
 {
    {ACTKEYS_MIRROR_CFRA, "CFRA", 0, "By Times over Current frame", ""},
    {ACTKEYS_MIRROR_XAXIS, "XAXIS", 0, "By Values over Value=0", ""},
    {ACTKEYS_MIRROR_MARKER, "MARKER", 0, "By Times over First Selected Marker", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 1440 of file action_edit.c.

Initial value:
 {
    {ACTKEYS_SNAP_CFRA, "CFRA", 0, "Current frame", ""},
    {ACTKEYS_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""}, 
    {ACTKEYS_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""}, 
    {ACTKEYS_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 1336 of file action_edit.c.