Blender V2.61 - r43446
Classes | Defines | Typedefs | Enumerations | Functions

ED_keyframes_edit.h File Reference

Go to the source code of this file.

Classes

struct  KeyframeEditData
struct  KeyframeEditCD_Remap

Defines

#define BEZ_SEL(bezt)   { (bezt)->f1 |= SELECT; (bezt)->f2 |= SELECT; (bezt)->f3 |= SELECT; }
#define BEZ_DESEL(bezt)   { (bezt)->f1 &= ~SELECT; (bezt)->f2 &= ~SELECT; (bezt)->f3 &= ~SELECT; }
#define BEZ_INVSEL(bezt)   { (bezt)->f1 ^= SELECT; (bezt)->f2 ^= SELECT; (bezt)->f3 ^= SELECT; }

Typedefs

typedef enum
eEditKeyframes_Validate 
eEditKeyframes_Validate
typedef enum eEditKeyframes_Select eEditKeyframes_Select
typedef enum eEditKeyframes_SelMap eEditKeyframes_SelMap
typedef enum eEditKeyframes_Snap eEditKeyframes_Snap
typedef enum eEditKeyframes_Mirror eEditKeyframes_Mirror
typedef struct KeyframeEditData KeyframeEditData
typedef void(* FcuEditFunc )(struct FCurve *fcu)
typedef short(* KeyframeEditFunc )(KeyframeEditData *ked, struct BezTriple *bezt)
typedef enum eKeyframeVertOk eKeyframeVertOk
typedef enum eKeyframeIterFlags eKeyframeIterFlags
typedef struct KeyframeEditCD_Remap KeyframeEditCD_Remap
typedef enum eKeyPasteOffset eKeyPasteOffset
typedef enum eKeyMergeMode eKeyMergeMode

Enumerations

enum  eEditKeyframes_Validate {
  BEZT_OK_FRAME = 1, BEZT_OK_FRAMERANGE, BEZT_OK_SELECTED, BEZT_OK_VALUE,
  BEZT_OK_VALUERANGE, BEZT_OK_REGION
}
enum  eEditKeyframes_Select { SELECT_REPLACE = (1<<0), SELECT_ADD = (1<<1), SELECT_SUBTRACT = (1<<2), SELECT_INVERT = (1<<3) }
enum  eEditKeyframes_SelMap { SELMAP_MORE = 0, SELMAP_LESS }
enum  eEditKeyframes_Snap {
  SNAP_KEYS_CURFRAME = 1, SNAP_KEYS_NEARFRAME, SNAP_KEYS_NEARSEC, SNAP_KEYS_NEARMARKER,
  SNAP_KEYS_HORIZONTAL, SNAP_KEYS_VALUE
}
enum  eEditKeyframes_Mirror {
  MIRROR_KEYS_CURFRAME = 1, MIRROR_KEYS_YAXIS, MIRROR_KEYS_XAXIS, MIRROR_KEYS_MARKER,
  MIRROR_KEYS_VALUE
}
enum  eKeyframeVertOk { KEYFRAME_OK_KEY = (1<<0), KEYFRAME_OK_H1 = (1<<1), KEYFRAME_OK_H2 = (1<<2), KEYFRAME_OK_ALL = (KEYFRAME_OK_KEY|KEYFRAME_OK_H1|KEYFRAME_OK_H2) }
enum  eKeyframeIterFlags { KEYFRAME_ITER_INCL_HANDLES = (1<<0) }
enum  eKeyPasteOffset { KEYFRAME_PASTE_OFFSET_CFRA_START, KEYFRAME_PASTE_OFFSET_CFRA_END, KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE, KEYFRAME_PASTE_OFFSET_NONE }
enum  eKeyMergeMode { KEYFRAME_PASTE_MERGE_MIX, KEYFRAME_PASTE_MERGE_OVER, KEYFRAME_PASTE_MERGE_OVER_RANGE, KEYFRAME_PASTE_MERGE_OVER_RANGE_ALL }

Functions

short ANIM_fcurve_keyframes_loop (KeyframeEditData *ked, struct FCurve *fcu, KeyframeEditFunc key_ok, KeyframeEditFunc key_cb, FcuEditFunc fcu_cb)
short ANIM_animchannel_keyframes_loop (KeyframeEditData *ked, struct bDopeSheet *ads, struct bAnimListElem *ale, KeyframeEditFunc key_ok, KeyframeEditFunc key_cb, FcuEditFunc fcu_cb)
short ANIM_animchanneldata_keyframes_loop (KeyframeEditData *ked, struct bDopeSheet *ads, void *data, int keytype, KeyframeEditFunc key_ok, KeyframeEditFunc key_cb, FcuEditFunc fcu_cb)
void ANIM_editkeyframes_refresh (struct bAnimContext *ac)
KeyframeEditFunc ANIM_editkeyframes_ok (short mode)
KeyframeEditFunc ANIM_editkeyframes_snap (short mode)
KeyframeEditFunc ANIM_editkeyframes_mirror (short mode)
KeyframeEditFunc ANIM_editkeyframes_select (short mode)
KeyframeEditFunc ANIM_editkeyframes_handles (short mode)
KeyframeEditFunc ANIM_editkeyframes_ipo (short mode)
KeyframeEditFunc ANIM_editkeyframes_keytype (short mode)
KeyframeEditFunc ANIM_editkeyframes_buildselmap (short mode)
short bezt_selmap_flush (KeyframeEditData *ked, struct BezTriple *bezt)
short bezt_calc_average (KeyframeEditData *ked, struct BezTriple *bezt)
short bezt_to_cfraelem (KeyframeEditData *ked, struct BezTriple *bezt)
void bezt_remap_times (KeyframeEditData *ked, struct BezTriple *bezt)
void delete_fcurve_key (struct FCurve *fcu, int index, short do_recalc)
void delete_fcurve_keys (struct FCurve *fcu)
void clear_fcurve_keys (struct FCurve *fcu)
void duplicate_fcurve_keys (struct FCurve *fcu)
void clean_fcurve (struct FCurve *fcu, float thresh)
void smooth_fcurve (struct FCurve *fcu)
void sample_fcurve (struct FCurve *fcu)
void free_anim_copybuf (void)
short copy_animedit_keys (struct bAnimContext *ac, ListBase *anim_data)
short paste_animedit_keys (struct bAnimContext *ac, ListBase *anim_data, const eKeyPasteOffset offset_mode, const eKeyMergeMode merge_mode)

Detailed Description

Definition in file ED_keyframes_edit.h.


Define Documentation

#define BEZ_DESEL (   bezt)    { (bezt)->f1 &= ~SELECT; (bezt)->f2 &= ~SELECT; (bezt)->f3 &= ~SELECT; }
#define BEZ_INVSEL (   bezt)    { (bezt)->f1 ^= SELECT; (bezt)->f2 ^= SELECT; (bezt)->f3 ^= SELECT; }

Definition at line 48 of file ED_keyframes_edit.h.

#define BEZ_SEL (   bezt)    { (bezt)->f1 |= SELECT; (bezt)->f2 |= SELECT; (bezt)->f3 |= SELECT; }

Typedef Documentation

typedef void(* FcuEditFunc)(struct FCurve *fcu)

Definition at line 126 of file ED_keyframes_edit.h.

typedef short(* KeyframeEditFunc)(KeyframeEditData *ked, struct BezTriple *bezt)

Definition at line 128 of file ED_keyframes_edit.h.


Enumeration Type Documentation

Enumerator:
MIRROR_KEYS_CURFRAME 
MIRROR_KEYS_YAXIS 
MIRROR_KEYS_XAXIS 
MIRROR_KEYS_MARKER 
MIRROR_KEYS_VALUE 

Definition at line 93 of file ED_keyframes_edit.h.

Enumerator:
SELECT_REPLACE 
SELECT_ADD 
SELECT_SUBTRACT 
SELECT_INVERT 

Definition at line 65 of file ED_keyframes_edit.h.

Enumerator:
SELMAP_MORE 
SELMAP_LESS 

Definition at line 77 of file ED_keyframes_edit.h.

Enumerator:
SNAP_KEYS_CURFRAME 
SNAP_KEYS_NEARFRAME 
SNAP_KEYS_NEARSEC 
SNAP_KEYS_NEARMARKER 
SNAP_KEYS_HORIZONTAL 
SNAP_KEYS_VALUE 

Definition at line 83 of file ED_keyframes_edit.h.

Enumerator:
BEZT_OK_FRAME 
BEZT_OK_FRAMERANGE 
BEZT_OK_SELECTED 
BEZT_OK_VALUE 
BEZT_OK_VALUERANGE 
BEZT_OK_REGION 

Definition at line 53 of file ED_keyframes_edit.h.

Enumerator:
KEYFRAME_ITER_INCL_HANDLES 

Definition at line 145 of file ED_keyframes_edit.h.

Enumerator:
KEYFRAME_OK_KEY 
KEYFRAME_OK_H1 
KEYFRAME_OK_H2 
KEYFRAME_OK_ALL 

Definition at line 133 of file ED_keyframes_edit.h.

Enumerator:
KEYFRAME_PASTE_MERGE_MIX 
KEYFRAME_PASTE_MERGE_OVER 
KEYFRAME_PASTE_MERGE_OVER_RANGE 
KEYFRAME_PASTE_MERGE_OVER_RANGE_ALL 

Definition at line 170 of file ED_keyframes_edit.h.

Enumerator:
KEYFRAME_PASTE_OFFSET_CFRA_START 
KEYFRAME_PASTE_OFFSET_CFRA_END 
KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE 
KEYFRAME_PASTE_OFFSET_NONE 

Definition at line 159 of file ED_keyframes_edit.h.


Function Documentation

short ANIM_animchannel_keyframes_loop ( KeyframeEditData ked,
struct bDopeSheet ads,
struct bAnimListElem ale,
KeyframeEditFunc  key_ok,
KeyframeEditFunc  key_cb,
FcuEditFunc  fcu_cb 
)
short ANIM_animchanneldata_keyframes_loop ( KeyframeEditData ked,
struct bDopeSheet ads,
void *  data,
int  keytype,
KeyframeEditFunc  key_ok,
KeyframeEditFunc  key_cb,
FcuEditFunc  fcu_cb 
)
KeyframeEditFunc ANIM_editkeyframes_buildselmap ( short  mode)
KeyframeEditFunc ANIM_editkeyframes_handles ( short  mode)
KeyframeEditFunc ANIM_editkeyframes_ipo ( short  mode)
KeyframeEditFunc ANIM_editkeyframes_keytype ( short  mode)
KeyframeEditFunc ANIM_editkeyframes_mirror ( short  mode)
KeyframeEditFunc ANIM_editkeyframes_ok ( short  mode)
void ANIM_editkeyframes_refresh ( struct bAnimContext ac)
KeyframeEditFunc ANIM_editkeyframes_select ( short  mode)
KeyframeEditFunc ANIM_editkeyframes_snap ( short  mode)
short ANIM_fcurve_keyframes_loop ( KeyframeEditData ked,
struct FCurve fcu,
KeyframeEditFunc  key_ok,
KeyframeEditFunc  key_cb,
FcuEditFunc  fcu_cb 
)
short bezt_calc_average ( KeyframeEditData ked,
struct BezTriple bezt 
)
void bezt_remap_times ( KeyframeEditData ked,
struct BezTriple bezt 
)
short bezt_selmap_flush ( KeyframeEditData ked,
struct BezTriple bezt 
)
short bezt_to_cfraelem ( KeyframeEditData ked,
struct BezTriple bezt 
)
void clean_fcurve ( struct FCurve fcu,
float  thresh 
)
void clear_fcurve_keys ( struct FCurve fcu)

Definition at line 130 of file keyframes_general.c.

References FCurve::bezt, MEM_freeN(), NULL, and FCurve::totvert.

Referenced by delete_fcurve_keys(), and paste_animedit_keys_fcurve().

short copy_animedit_keys ( struct bAnimContext ac,
ListBase anim_data 
)
void delete_fcurve_key ( struct FCurve fcu,
int  index,
short  do_recalc 
)
void delete_fcurve_keys ( struct FCurve fcu)
void duplicate_fcurve_keys ( struct FCurve fcu)
void free_anim_copybuf ( void  )

Definition at line 480 of file keyframes_general.c.

short paste_animedit_keys ( struct bAnimContext ac,
ListBase anim_data,
const eKeyPasteOffset  offset_mode,
const eKeyMergeMode  merge_mode 
)
void sample_fcurve ( struct FCurve fcu)
void smooth_fcurve ( struct FCurve fcu)